|
1 | 1 | local ucmd = vim.api.nvim_create_user_command |
2 | 2 |
|
3 | | --- NOTE: remove this after 0.7 release |
4 | | -if not ucmd then |
5 | | - vim.cmd([[ |
6 | | - command NavigatorLeft lua require'Navigator'.left() |
7 | | - command NavigatorRight lua require'Navigator'.right() |
8 | | - command NavigatorUp lua require'Navigator'.up() |
9 | | - command NavigatorDown lua require'Navigator'.down() |
10 | | - command NavigatorPrevious lua require'Navigator'.previous() |
11 | | - ]]) |
12 | | -else |
13 | | - local N = require('Navigator') |
| 3 | +local N = require('Navigator') |
14 | 4 |
|
15 | | - ucmd('NavigatorLeft', N.left, {}) |
16 | | - ucmd('NavigatorRight', N.right, {}) |
17 | | - ucmd('NavigatorUp', N.up, {}) |
18 | | - ucmd('NavigatorDown', N.down, {}) |
19 | | - ucmd('NavigatorPrevious', N.previous, {}) |
20 | | -end |
| 5 | +ucmd('NavigatorLeft', N.left, {}) |
| 6 | +ucmd('NavigatorRight', N.right, {}) |
| 7 | +ucmd('NavigatorUp', N.up, {}) |
| 8 | +ucmd('NavigatorDown', N.down, {}) |
| 9 | +ucmd('NavigatorPrevious', N.previous, {}) |
0 commit comments