5
5
| \ | (_| \/ | (_| (_ | | _ (_) | o | | \/ | | | |
6
6
_|
7
7
8
- · Smoothly navigate between neovim and multipexers ·
8
+ · Smoothly navigate between neovim and multiplexer(s) ·
9
9
10
10
11
- ================================================================================
11
+ ==============================================================================
12
12
Table of Contents *navigator.contents*
13
13
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 |
20
20
21
- ================================================================================
21
+ ==============================================================================
22
22
Introduction *navigator-nvim*
23
23
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
25
25
navigate between neovim and different terminal multiplexers. It also allows you to
26
- integrate your own custom multipexer .
26
+ integrate your own custom multiplexer .
27
27
28
- ================================================================================
28
+ ==============================================================================
29
29
Commands *navigator.commands*
30
30
31
31
This plugin provides the following commands:
@@ -36,7 +36,7 @@ This plugin provides the following commands:
36
36
*NavigatorDown* - Go to down split/pane
37
37
*NavigatorPrevious* - Go to previous split/pane
38
38
39
- ================================================================================
39
+ ==============================================================================
40
40
API and Config *navigator.api*
41
41
42
42
Config *navigator.api.Config*
@@ -67,79 +67,79 @@ Nav.setup({opts}) *navigator.api.setup*
67
67
{opts} (Config)
68
68
69
69
Usage: ~
70
- >
71
- -- With default config
72
- require('Navigator').setup()
70
+ >lua
71
+ -- With default config
72
+ require('Navigator').setup()
73
73
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
+ <
80
80
81
81
82
82
Nav.left() *navigator.api.left*
83
83
Go to left split/pane
84
84
85
85
Usage: ~
86
- >
87
- require('Navigator').left()
86
+ >lua
87
+ require('Navigator').left()
88
88
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
+ <
92
92
93
93
94
94
Nav.up() *navigator.api.up*
95
95
Go to upper split/pane
96
96
97
97
Usage: ~
98
- >
99
- require('Navigator').up()
98
+ >lua
99
+ require('Navigator').up()
100
100
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
+ <
104
104
105
105
106
106
Nav.right() *navigator.api.right*
107
107
Go to right split/pane
108
108
109
109
Usage: ~
110
- >
111
- require('Navigator').right()
110
+ >lua
111
+ require('Navigator').right()
112
112
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
+ <
116
116
117
117
118
118
Nav.down() *navigator.api.down*
119
119
Go to down split/pane
120
120
121
121
Usage: ~
122
- >
123
- require('Navigator').down()
122
+ >lua
123
+ require('Navigator').down()
124
124
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
+ <
128
128
129
129
130
130
Nav.previous() *navigator.api.previous*
131
131
Go to previous split/pane
132
132
133
133
Usage: ~
134
- >
135
- require('Navigator').previous()
134
+ >lua
135
+ require('Navigator').previous()
136
136
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
+ <
140
140
141
141
142
- ================================================================================
142
+ ==============================================================================
143
143
Neovim navigator *navigator.vi*
144
144
145
145
This module provides navigation and interaction for Neovim. This also acts
@@ -156,10 +156,9 @@ Vi:new() *navigator.vi:new*
156
156
157
157
Vi.zoomed() *navigator.vi.zoomed*
158
158
Checks whether neovim is maximized
159
- NOTE: For neovim, this always returns `false` .
160
159
161
160
Returns: ~
162
- (boolean)
161
+ (boolean) For neovim, it'll always returns `false`
163
162
164
163
165
164
Vi:navigate({direction} ) *navigator.vi:navigate*
@@ -172,7 +171,7 @@ Vi:navigate({direction}) *navigator.vi:navigate*
172
171
(Vi)
173
172
174
173
175
- ================================================================================
174
+ ==============================================================================
176
175
Tmux navigator *navigator.tmux*
177
176
178
177
This module provides navigation and interaction for Tmux, and uses | navigator.vi |
@@ -187,15 +186,15 @@ Tmux:new() *navigator.tmux:new*
187
186
(Tmux)
188
187
189
188
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)
194
193
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
+ <
199
198
200
199
201
200
Tmux:zoomed() *navigator.tmux:zoomed*
@@ -215,7 +214,7 @@ Tmux:navigate({direction}) *navigator.tmux:navigate*
215
214
(Tmux)
216
215
217
216
218
- ================================================================================
217
+ ==============================================================================
219
218
WezTerm navigator *navigator.wezterm*
220
219
221
220
This module provides navigation and interaction for WezTerm, and uses | navigator.vi |
@@ -231,15 +230,15 @@ WezTerm:new() *navigator.wezterm:new*
231
230
(WezTerm)
232
231
233
232
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
+ <
243
242
244
243
245
244
WezTerm:navigate({direction} ) *navigator.wezterm:navigate*
0 commit comments