fix vim and neovim configs so I can use ctrl-a for tmux
This commit is contained in:
@@ -38,6 +38,10 @@ vim.cmd [[
|
|||||||
nnoremap L $
|
nnoremap L $
|
||||||
xnoremap H ^
|
xnoremap H ^
|
||||||
xnoremap L $
|
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>
|
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
|
||||||
|
|
||||||
@@ -360,13 +364,13 @@ require'lazy'.setup{ --{{{1
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'f-person/git-blame.nvim', --{{{2
|
{ 'f-person/git-blame.nvim', --{{{2
|
||||||
keys = {',a'},
|
keys = {',g'},
|
||||||
config = function ()
|
config = function ()
|
||||||
require'gitblame'.setup{
|
require'gitblame'.setup{
|
||||||
enabled = false,
|
enabled = false,
|
||||||
}
|
}
|
||||||
vim.cmd[[
|
vim.cmd[[
|
||||||
nnoremap ,a :GitBlameToggle<CR>
|
nnoremap ,g :GitBlameToggle<CR>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
@@ -539,12 +543,6 @@ require'lazy'.setup{ --{{{1
|
|||||||
}
|
}
|
||||||
end,
|
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
|
{ 'mfussenegger/nvim-dap', --{{{2
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
|||||||
@@ -31,6 +31,13 @@ nnoremap <c-p> :cprevious<CR>
|
|||||||
nnoremap <c-u> <c-u>zz
|
nnoremap <c-u> <c-u>zz
|
||||||
nnoremap H ^
|
nnoremap H ^
|
||||||
nnoremap L $
|
nnoremap L $
|
||||||
|
|
||||||
|
" i use ctrl-a for the tmux prefix key
|
||||||
|
nnoremap <C-a> <Nop>
|
||||||
|
nnoremap <C-x> <Nop>
|
||||||
|
nnoremap ,a <C-a>
|
||||||
|
nnoremap ,x <C-x>
|
||||||
|
|
||||||
set autoindent
|
set autoindent
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user