diff options
Diffstat (limited to '.config/nvim/lua/mappings.lua')
-rw-r--r-- | .config/nvim/lua/mappings.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 1512fee..4bf7cf3 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua | |||
@@ -152,4 +152,36 @@ vim.keymap.set('n', '<Leader>`', '<Plug>(leap-backward)', opts) | |||
152 | vim.keymap.set('v', '`', '<Plug>(leap-forward)', opts) | 152 | vim.keymap.set('v', '`', '<Plug>(leap-forward)', opts) |
153 | vim.keymap.set('v', '<Leader>`', '<Plug>(leap-backward)', opts) | 153 | vim.keymap.set('v', '<Leader>`', '<Plug>(leap-backward)', opts) |
154 | 154 | ||
155 | -- barbar.nvim mappings | ||
156 | local opts = { noremap = true, silent = true } | ||
157 | |||
158 | -- move to previous/next | ||
159 | vim.keymap.set('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts) | ||
160 | vim.keymap.set('n', '<A-.>', '<Cmd>BufferNext<CR>', opts) | ||
161 | -- re-order to previous/next | ||
162 | vim.keymap.set('n', '<A-e>', '<Cmd>BufferMovePrevious<CR>', opts) | ||
163 | vim.keymap.set('n', '<A-i>', '<Cmd>BufferMoveNext<CR>', opts) | ||
164 | -- goto buffer in position... | ||
165 | vim.keymap.set('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts) | ||
166 | vim.keymap.set('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts) | ||
167 | vim.keymap.set('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts) | ||
168 | vim.keymap.set('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts) | ||
169 | vim.keymap.set('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts) | ||
170 | vim.keymap.set('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts) | ||
171 | vim.keymap.set('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts) | ||
172 | vim.keymap.set('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts) | ||
173 | vim.keymap.set('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts) | ||
174 | vim.keymap.set('n', '<A-0>', '<Cmd>BufferLast<CR>', opts) | ||
175 | -- pin/unpin buffer | ||
176 | vim.keymap.set('n', '<A-p>', '<Cmd>BufferPin<CR>', opts) | ||
177 | -- close buffer | ||
178 | vim.keymap.set('n', '<A-c>', '<Cmd>BufferClose<CR>', opts) | ||
179 | -- magic buffer-picking mode | ||
180 | vim.keymap.set('n', '<leader>dg', '<Cmd>BufferPick<CR>', opts) | ||
181 | -- sort automatically by... | ||
182 | vim.keymap.set('n', '<Leader>db', '<Cmd>BufferOrderByBufferNumber<CR>', opts) | ||
183 | vim.keymap.set('n', '<Leader>dd', '<Cmd>BufferOrderByDirectory<CR>', opts) | ||
184 | vim.keymap.set('n', '<Leader>dl', '<Cmd>BufferOrderByLanguage<CR>', opts) | ||
185 | vim.keymap.set('n', '<Leader>dw', '<Cmd>BufferOrderByWindowNumber<CR>', opts) | ||
186 | |||
155 | -- }}} plug mappings -- | 187 | -- }}} plug mappings -- |