Fix debugpy path, load launch.json and keymappings
This commit is contained in:
parent
ea7010cac1
commit
e346668a85
3 changed files with 21 additions and 12 deletions
|
|
@ -12,11 +12,11 @@ vim.keymap.set('i', '<C-s>', function()
|
|||
vim.cmd.w()
|
||||
end, { desc = '[S]ave file' })
|
||||
|
||||
|
||||
-- mappings barbar
|
||||
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
-- Move to previous/next
|
||||
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
|
||||
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
|
||||
|
|
@ -41,6 +41,9 @@ map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
|
|||
-- Wipeout buffer
|
||||
-- :BufferWipeout
|
||||
-- Close commands
|
||||
map('n', '<leader>bcab', '<Cmd>BufferCloseAllButCurrent<CR>', opts)
|
||||
map('n', '<leader>bcab', '<Cmd>BufferCloseAllButPinned<CR>', opts)
|
||||
map('n', '<leader>bcar', '<Cmd>BufferCloseBuffersRight<CR>', opts)
|
||||
-- :BufferCloseAllButCurrent
|
||||
-- :BufferCloseAllButPinned
|
||||
-- :BufferCloseAllButCurrentOrPinned
|
||||
|
|
@ -49,8 +52,8 @@ map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
|
|||
-- Magic buffer-picking mode
|
||||
map('n', '<C-p>', '<Cmd>BufferPick<CR>', opts)
|
||||
-- Sort automatically by...
|
||||
map('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
|
||||
map('n', '<Space>bn', '<Cmd>BufferOrderByName<CR>', opts)
|
||||
map('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)
|
||||
map('n', '<Space>bl', '<Cmd>BufferOrderByLanguage<CR>', opts)
|
||||
map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', opts)
|
||||
map('n', '<leader>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
|
||||
map('n', '<leader>bn', '<Cmd>BufferOrderByName<CR>', opts)
|
||||
map('n', '<leader>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)
|
||||
map('n', '<leader>bl', '<Cmd>BufferOrderByLanguage<CR>', opts)
|
||||
map('n', '<leader>bw', '<Cmd>BufferOrderByWindowNumber<CR>', opts)
|
||||
Loading…
Add table
Add a link
Reference in a new issue