|
1 | 1 | return { |
2 | 2 | 'mrjones2014/smart-splits.nvim', |
3 | | - config = function() |
4 | | - require('smart-splits').setup() |
5 | | - vim.keymap.set('n', '<C-h>', function() |
6 | | - require('smart-splits').move_cursor_left() |
7 | | - end, { desc = 'Move to left split' }) |
8 | | - vim.keymap.set('n', '<C-j>', function() |
9 | | - require('smart-splits').move_cursor_down() |
10 | | - end, { desc = 'Move to below split' }) |
11 | | - vim.keymap.set('n', '<C-k>', function() |
12 | | - require('smart-splits').move_cursor_up() |
13 | | - end, { desc = 'Move to above split' }) |
14 | | - vim.keymap.set('n', '<C-l>', function() |
15 | | - require('smart-splits').move_cursor_right() |
16 | | - end, { desc = 'Move to right split' }) |
17 | | - vim.keymap.set('n', '<C-Up>', function() |
18 | | - require('smart-splits').resize_up() |
19 | | - end, { desc = 'Resize split up' }) |
20 | | - vim.keymap.set('n', '<C-Down>', function() |
21 | | - require('smart-splits').resize_down() |
22 | | - end, { desc = 'Resize split down' }) |
23 | | - vim.keymap.set('n', '<C-Left>', function() |
24 | | - require('smart-splits').resize_left() |
25 | | - end, { desc = 'Resize split left' }) |
26 | | - vim.keymap.set('n', '<C-Right>', function() |
27 | | - require('smart-splits').resize_right() |
28 | | - end, { desc = 'Resize split right' }) |
29 | | - end, |
| 3 | + opts = {}, |
| 4 | + keys = { |
| 5 | + { |
| 6 | + '<C-h>', |
| 7 | + function() |
| 8 | + require('smart-splits').move_cursor_left() |
| 9 | + end, |
| 10 | + desc = 'Move to left split', |
| 11 | + }, |
| 12 | + { |
| 13 | + '<C-j>', |
| 14 | + function() |
| 15 | + require('smart-splits').move_cursor_down() |
| 16 | + end, |
| 17 | + desc = 'Move to below split', |
| 18 | + }, |
| 19 | + { |
| 20 | + '<C-k>', |
| 21 | + function() |
| 22 | + require('smart-splits').move_cursor_up() |
| 23 | + end, |
| 24 | + desc = 'Move to above split', |
| 25 | + }, |
| 26 | + { |
| 27 | + '<C-l>', |
| 28 | + function() |
| 29 | + require('smart-splits').move_cursor_right() |
| 30 | + end, |
| 31 | + desc = 'Move to right split', |
| 32 | + }, |
| 33 | + { |
| 34 | + '<C-Left>', |
| 35 | + function() |
| 36 | + require('smart-splits').resize_left() |
| 37 | + end, |
| 38 | + desc = 'Resize split left', |
| 39 | + }, |
| 40 | + { |
| 41 | + '<C-Down>', |
| 42 | + function() |
| 43 | + require('smart-splits').resize_down() |
| 44 | + end, |
| 45 | + desc = 'Resize split down', |
| 46 | + }, |
| 47 | + { |
| 48 | + '<C-Up>', |
| 49 | + function() |
| 50 | + require('smart-splits').resize_up() |
| 51 | + end, |
| 52 | + desc = 'Resize split up', |
| 53 | + }, |
| 54 | + { |
| 55 | + '<C-Right>', |
| 56 | + function() |
| 57 | + require('smart-splits').resize_right() |
| 58 | + end, |
| 59 | + desc = 'Resize split right', |
| 60 | + }, |
| 61 | + }, |
30 | 62 | } |
0 commit comments