|
@ -1,6 +1,7 @@ |
|
|
local map = vim.api.nvim_set_keymap |
|
|
local map = vim.api.nvim_set_keymap |
|
|
local opts = { noremap = true, silent = true } |
|
|
local opts = { noremap = true, silent = true } |
|
|
|
|
|
|
|
|
|
|
|
if vim.loop.os_uname().sysname == "Darwin" then |
|
|
-- Move to previous/next |
|
|
-- Move to previous/next |
|
|
map('n', '≤', '<Cmd>BufferPrevious<CR>', opts) |
|
|
map('n', '≤', '<Cmd>BufferPrevious<CR>', opts) |
|
|
map('n', '≥', '<Cmd>BufferNext<CR>', opts) |
|
|
map('n', '≥', '<Cmd>BufferNext<CR>', opts) |
|
@ -22,29 +23,29 @@ map('n', 'º', '<Cmd>BufferLast<CR>', opts) |
|
|
map('n', 'π', '<Cmd>BufferPin<CR>', opts) |
|
|
map('n', 'π', '<Cmd>BufferPin<CR>', opts) |
|
|
-- Close buffer |
|
|
-- Close buffer |
|
|
map('n', 'ç', '<Cmd>BufferClose<CR>', opts) |
|
|
map('n', 'ç', '<Cmd>BufferClose<CR>', opts) |
|
|
|
|
|
|
|
|
---- Move to previous/next |
|
|
|
|
|
--map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts) |
|
|
|
|
|
--map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts) |
|
|
|
|
|
---- Re-order to previous/next |
|
|
|
|
|
--map('n', '<A-<>', '<Cmd>BufferMovePrevious<CR>', opts) |
|
|
|
|
|
--map('n', '<A->>', '<Cmd>BufferMoveNext<CR>', opts) |
|
|
|
|
|
---- Goto buffer in position... |
|
|
|
|
|
--map('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts) |
|
|
|
|
|
--map('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts) |
|
|
|
|
|
--map('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts) |
|
|
|
|
|
--map('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts) |
|
|
|
|
|
--map('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts) |
|
|
|
|
|
--map('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts) |
|
|
|
|
|
--map('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts) |
|
|
|
|
|
--map('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts) |
|
|
|
|
|
--map('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts) |
|
|
|
|
|
--map('n', '<A-0>', '<Cmd>BufferLast<CR>', opts) |
|
|
|
|
|
---- Pin/unpin buffer |
|
|
|
|
|
--map('n', '<A-p>', '<Cmd>BufferPin<CR>', opts) |
|
|
|
|
|
---- Close buffer |
|
|
|
|
|
--map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
-- Move to previous/next |
|
|
|
|
|
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts) |
|
|
|
|
|
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts) |
|
|
|
|
|
-- Re-order to previous/next |
|
|
|
|
|
map('n', '<A-<>', '<Cmd>BufferMovePrevious<CR>', opts) |
|
|
|
|
|
map('n', '<A->>', '<Cmd>BufferMoveNext<CR>', opts) |
|
|
|
|
|
-- Goto buffer in position... |
|
|
|
|
|
map('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts) |
|
|
|
|
|
map('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts) |
|
|
|
|
|
map('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts) |
|
|
|
|
|
map('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts) |
|
|
|
|
|
map('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts) |
|
|
|
|
|
map('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts) |
|
|
|
|
|
map('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts) |
|
|
|
|
|
map('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts) |
|
|
|
|
|
map('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts) |
|
|
|
|
|
map('n', '<A-0>', '<Cmd>BufferLast<CR>', opts) |
|
|
|
|
|
-- Pin/unpin buffer |
|
|
|
|
|
map('n', '<A-p>', '<Cmd>BufferPin<CR>', opts) |
|
|
|
|
|
-- Close buffer |
|
|
|
|
|
map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
-- Wipeout buffer |
|
|
-- Wipeout buffer |
|
|
-- :BufferWipeout |
|
|
-- :BufferWipeout |
|
|