feat: add more mappings
This commit is contained in:
parent
71d5792e45
commit
3a53db9eb0
3 changed files with 22 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
|||
local map = vim.keymap.set
|
||||
|
||||
map({ 'n' }, '<leader>cw', ':%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>', { desc = '[C]ut [W]orld' })
|
||||
map({ 'n' }, '<leader>x', '<cmd>bd<CR>', { desc = 'Close buffer' })
|
||||
map('n', 'n', 'nzzzv')
|
||||
map('n', 'N', 'Nzzzv')
|
||||
|
|
@ -17,9 +17,11 @@ return {
|
|||
-- Installs the debug adapters for you
|
||||
'williamboman/mason.nvim',
|
||||
'jay-babu/mason-nvim-dap.nvim',
|
||||
-- 'microsoft/vscode-js-debug',
|
||||
|
||||
-- Add your own debuggers here
|
||||
'leoluz/nvim-dap-go',
|
||||
-- 'mxsdev/nvim-dap-vscode-js',
|
||||
},
|
||||
config = function()
|
||||
local dap = require 'dap'
|
||||
|
|
@ -83,5 +85,6 @@ return {
|
|||
|
||||
-- Install golang specific config
|
||||
require('dap-go').setup()
|
||||
-- require('nvim-dap-vscode-js').setup()
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue