Skip to content

Commit 91d8650

Browse files
numToStrgithub-actions[bot]
authored andcommitted
chore(docs): auto-generate :help doc
1 parent eb8bc0c commit 91d8650

File tree

1 file changed

+68
-69
lines changed

1 file changed

+68
-69
lines changed

doc/Navigator.txt

Lines changed: 68 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@
55
| \| (_| \/ | (_| (_| |_ (_) | o | | \/ | | | |
66
_|
77

8-
· Smoothly navigate between neovim and multipexers ·
8+
· Smoothly navigate between neovim and multiplexer(s) ·
99

1010

11-
================================================================================
11+
==============================================================================
1212
Table of Contents *navigator.contents*
1313

14-
Introduction····················································|navigator-nvim|
15-
Commands····················································|navigator.commands|
16-
API and Config···················································|navigator.api|
17-
Neovim navigator··················································|navigator.vi|
18-
Tmux navigator··················································|navigator.tmux|
19-
WezTerm navigator············································|navigator.wezterm|
14+
Introduction ·················································· |navigator-nvim|
15+
Commands ·················································· |navigator.commands|
16+
API and Config ················································· |navigator.api|
17+
Neovim navigator ················································ |navigator.vi|
18+
Tmux navigator ················································ |navigator.tmux|
19+
WezTerm navigator ·········································· |navigator.wezterm|
2020

21-
================================================================================
21+
==============================================================================
2222
Introduction *navigator-nvim*
2323

24-
Navigator.nvim provides set of functions and commands that allows you to seemlessly
24+
Navigator.nvim provides set of functions and commands that allows you to seamlessly
2525
navigate between neovim and different terminal multiplexers. It also allows you to
26-
integrate your own custom multipexer.
26+
integrate your own custom multiplexer.
2727

28-
================================================================================
28+
==============================================================================
2929
Commands *navigator.commands*
3030

3131
This plugin provides the following commands:
@@ -36,7 +36,7 @@ This plugin provides the following commands:
3636
*NavigatorDown* - Go to down split/pane
3737
*NavigatorPrevious* - Go to previous split/pane
3838

39-
================================================================================
39+
==============================================================================
4040
API and Config *navigator.api*
4141

4242
Config *navigator.api.Config*
@@ -67,79 +67,79 @@ Nav.setup({opts}) *navigator.api.setup*
6767
{opts} (Config)
6868

6969
Usage: ~
70-
>
71-
-- With default config
72-
require('Navigator').setup()
70+
>lua
71+
-- With default config
72+
require('Navigator').setup()
7373

74-
-- With custom config
75-
require('Navigator').setup({
76-
auto_save = 'current'
77-
disable_on_zoom = true
78-
})
79-
<
74+
-- With custom config
75+
require('Navigator').setup({
76+
auto_save = 'current'
77+
disable_on_zoom = true
78+
})
79+
<
8080

8181

8282
Nav.left() *navigator.api.left*
8383
Go to left split/pane
8484

8585
Usage: ~
86-
>
87-
require('Navigator').left()
86+
>lua
87+
require('Navigator').left()
8888

89-
-- With keybinding
90-
vim.keymap.set({'n', 't'}, '<A-h>', require('Navigator').left)
91-
<
89+
-- With keybinding
90+
vim.keymap.set({'n', 't'}, '<A-h>', require('Navigator').left)
91+
<
9292

9393

9494
Nav.up() *navigator.api.up*
9595
Go to upper split/pane
9696

9797
Usage: ~
98-
>
99-
require('Navigator').up()
98+
>lua
99+
require('Navigator').up()
100100

101-
-- With keybinding
102-
vim.keymap.set({'n', 't'}, '<A-k>', require('Navigator').up)
103-
<
101+
-- With keybinding
102+
vim.keymap.set({'n', 't'}, '<A-k>', require('Navigator').up)
103+
<
104104

105105

106106
Nav.right() *navigator.api.right*
107107
Go to right split/pane
108108

109109
Usage: ~
110-
>
111-
require('Navigator').right()
110+
>lua
111+
require('Navigator').right()
112112

113-
-- With keybinding
114-
vim.keymap.set({'n', 't'}, '<A-l>', require('Navigator').right)
115-
<
113+
-- With keybinding
114+
vim.keymap.set({'n', 't'}, '<A-l>', require('Navigator').right)
115+
<
116116

117117

118118
Nav.down() *navigator.api.down*
119119
Go to down split/pane
120120

121121
Usage: ~
122-
>
123-
require('Navigator').down()
122+
>lua
123+
require('Navigator').down()
124124

125-
-- With keybinding
126-
vim.keymap.set({'n', 't'}, '<A-j>', require('Navigator').down)
127-
<
125+
-- With keybinding
126+
vim.keymap.set({'n', 't'}, '<A-j>', require('Navigator').down)
127+
<
128128

129129

130130
Nav.previous() *navigator.api.previous*
131131
Go to previous split/pane
132132

133133
Usage: ~
134-
>
135-
require('Navigator').previous()
134+
>lua
135+
require('Navigator').previous()
136136

137-
-- With keybinding
138-
vim.keymap.set({'n', 't'}, '<A-p>', require('Navigator').previous)
139-
<
137+
-- With keybinding
138+
vim.keymap.set({'n', 't'}, '<A-p>', require('Navigator').previous)
139+
<
140140

141141

142-
================================================================================
142+
==============================================================================
143143
Neovim navigator *navigator.vi*
144144

145145
This module provides navigation and interaction for Neovim. This also acts
@@ -156,10 +156,9 @@ Vi:new() *navigator.vi:new*
156156

157157
Vi.zoomed() *navigator.vi.zoomed*
158158
Checks whether neovim is maximized
159-
NOTE: For neovim, this always returns `false`.
160159

161160
Returns: ~
162-
(boolean)
161+
(boolean) For neovim, it'll always returns `false`
163162

164163

165164
Vi:navigate({direction}) *navigator.vi:navigate*
@@ -172,7 +171,7 @@ Vi:navigate({direction}) *navigator.vi:navigate*
172171
(Vi)
173172

174173

175-
================================================================================
174+
==============================================================================
176175
Tmux navigator *navigator.tmux*
177176

178177
This module provides navigation and interaction for Tmux, and uses |navigator.vi|
@@ -187,15 +186,15 @@ Tmux:new() *navigator.tmux:new*
187186
(Tmux)
188187

189188
Usage: ~
190-
>
191-
local ok, tmux = pcall(function()
192-
return require('Navigator.mux.tmux'):new()
193-
end)
189+
>lua
190+
local ok, tmux = pcall(function()
191+
return require('Navigator.mux.tmux'):new()
192+
end)
194193

195-
require('Navigator').setup({
196-
mux = ok and tmux or 'auto'
197-
})
198-
<
194+
require('Navigator').setup({
195+
mux = ok and tmux or 'auto'
196+
})
197+
<
199198

200199

201200
Tmux:zoomed() *navigator.tmux:zoomed*
@@ -215,7 +214,7 @@ Tmux:navigate({direction}) *navigator.tmux:navigate*
215214
(Tmux)
216215

217216

218-
================================================================================
217+
==============================================================================
219218
WezTerm navigator *navigator.wezterm*
220219

221220
This module provides navigation and interaction for WezTerm, and uses |navigator.vi|
@@ -231,15 +230,15 @@ WezTerm:new() *navigator.wezterm:new*
231230
(WezTerm)
232231

233232
Usage: ~
234-
>
235-
local ok, wezterm = pcall(function()
236-
return require('Navigator.mux.wezterm'):new()
237-
end)
238-
239-
require('Navigator').setup({
240-
mux = ok and wezterm or 'auto'
241-
})
242-
<
233+
>lua
234+
local ok, wezterm = pcall(function()
235+
return require('Navigator.mux.wezterm'):new()
236+
end)
237+
238+
require('Navigator').setup({
239+
mux = ok and wezterm or 'auto'
240+
})
241+
<
243242

244243

245244
WezTerm:navigate({direction}) *navigator.wezterm:navigate*

0 commit comments

Comments
 (0)