dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 2297536e83208e504d8473857ac97dca4a8741c1
parent 54228fbc4e662e4fb288e6d8a3f5e0e0d5a798c0
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 30 Jul 2024 11:01:13 -0700

Configure update fzf <leader> mappings

I'd originally mapped these to control-key mappings, but at some point,
I switched over to <leader> key mappings, but didn't update the mappings
to ones that made more sense.

I'd initially chosen to use <C-^> for search buffers since by default,
<C-b> scrolls back (up) one page and <C-f> scrolls forwards (down) one
page. There's no <leader>b mapping, so use that instead.

<C-p> was the most obvious mapping for search across files since it's
used in several other editors for searching in the project, but there's
no concept of project in vim, so may as well use the more obvious
<leader>f.

<leader>c is a bit more obvious than <leader>k for command search.

Diffstat:
M.config/nvim/init.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -90,11 +90,11 @@ set tags+=~/.local/tags/system.tags set tags+=~/.local/tags/cxx.tags " Configure fzf-lua. -nnoremap <leader>^ <cmd>FzfLua buffers<CR> -nnoremap <leader>p <cmd>FzfLua files<CR> +nnoremap <leader>b <cmd>FzfLua buffers<CR> +nnoremap <leader>f <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> +nnoremap <leader>c <cmd>FzfLua builtin commands<CR> " Configure colour scheme and syntax highlighting. if &t_Co > 2