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