commit 7fd73b65d7d107aebf0f327777d0ce93cb135d9f parent 8c1efccc9190ba4920bdac4cf790362a5fbe0f3c Author: Chris Bracken <chris@bracken.jp> Date: Fri, 24 May 2024 23:24:38 -0700 vim: use leader keys instead of C- for fzf Attempting to use control key mappings leads to too many conflicts with vim's built-in keybindings. Switch the C-n mapping for switching between numbering modes to <leader>n while I'm at it. Diffstat:
M | .config/nvim/init.vim | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -87,11 +87,11 @@ set tags+=~/.local/tags/system.tags set tags+=~/.local/tags/cxx.tags " Configure fzf-lua. -nnoremap <C-^> <cmd>FzfLua buffers<CR> -nnoremap <C-p> <cmd>FzfLua files<CR> -nnoremap <C-S-G> <cmd>FzfLua grep<CR> -nnoremap <C-l> <cmd>FzfLua live_grep<CR> -nnoremap <C-k> <cmd>FzfLua builtin commands<CR> +nnoremap <leader>^ <cmd>FzfLua buffers<CR> +nnoremap <leader>p <cmd>FzfLua files<CR> +nnoremap <leader>g <cmd>FzfLua grep<CR> +nnoremap <leader>l <cmd>FzfLua live_grep<CR> +nnoremap <leader>k <cmd>FzfLua builtin commands<CR> " Configure colour scheme and syntax highlighting. if &t_Co > 2 @@ -130,4 +130,4 @@ function! ToggleNumbering() set nonumber endif endfunc -nnoremap <C-n> :call ToggleNumbering()<CR> +nnoremap <leader>n :call ToggleNumbering()<CR>