fix vim and neovim configs so I can use ctrl-a for tmux

This commit is contained in:
2025-10-09 20:40:22 +02:00
parent f0ec0b2fc8
commit ba8fff1069
2 changed files with 13 additions and 8 deletions
+6 -8
View File
@@ -38,6 +38,10 @@ vim.cmd [[
nnoremap L $
xnoremap H ^
xnoremap L $
nnoremap <C-a> <Nop>
nnoremap <C-x> <Nop>
nnoremap ,a <C-a>
nnoremap ,x <C-x>
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
@@ -360,13 +364,13 @@ require'lazy'.setup{ --{{{1
end,
},
{ 'f-person/git-blame.nvim', --{{{2
keys = {',a'},
keys = {',g'},
config = function ()
require'gitblame'.setup{
enabled = false,
}
vim.cmd[[
nnoremap ,a :GitBlameToggle<CR>
nnoremap ,g :GitBlameToggle<CR>
]]
end
},
@@ -539,12 +543,6 @@ require'lazy'.setup{ --{{{1
}
end,
},
{ 'kdheepak/lazygit.nvim', --{{{2
lazy = true,
cmd = { 'LazyGit', 'LazyGitConfig', 'LazyGitCurrentFile', 'LazyGitFilter', 'LazyGitFilterCurrentFile', },
dependencies = { 'nvim-lua/plenary.nvim', },
keys = { { ',g', '<cmd>LazyGit<cr>', desc = 'LazyGit' }, },
},
{ 'mfussenegger/nvim-dap', --{{{2
dependencies = {
'nvim-treesitter/nvim-treesitter',