dotfiles

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

commit 54041e0d66bfbed435ed6c96dea56995ff69cabf
parent f0adc1f88251c0aa1315c2cafd262699b7f6baec
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 17 May 2024 20:20:31 -0700

vim: Add fzf-lua plugin

Adds the fzf-lua plugin, and adds mappings for searching files, buffers,
grep results, and vim builtin commands.

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

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -11,6 +11,9 @@ Plug 'rhysd/vim-clang-format' " clang-format. " Language support plugins. Plug 'https://gn.googlesource.com/gn', { 'rtp': 'misc/vim' } Plug 'rust-lang/rust.vim' + +" Behaviour. +Plug 'ibhagwan/fzf-lua' call plug#end() " Bind fancier manpage plugin to Shift-k. @@ -81,6 +84,13 @@ au FileType python setl ts=2 sw=2 sts=2 et 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-g> <cmd>FzfLua grep<CR> +nnoremap <C-l> <cmd>FzfLua live_grep<CR> +nnoremap <C-k> <cmd>FzfLua builtin commands<CR> + " Configure colour scheme and syntax highlighting. if &t_Co > 2 syntax enable