Add telescope keybinds

This commit is contained in:
buffet 2022-08-16 21:07:40 +00:00
parent b8ca209368
commit c6e28237da

View file

@ -11,7 +11,9 @@
# TODO: keybinds # TODO: keybinds
# TODO: looks # TODO: looks
# TODO: options # TODO: options
programs.neovim = { programs.neovim = let
leader = ",";
in {
enable = true; enable = true;
plugins = let plugins = let
buildPlugin = name: buildPlugin = name:
@ -71,7 +73,12 @@
{ {
plugin = telescope-nvim; plugin = telescope-nvim;
# TODO: telescope-nvim config config = ''
nnoremap ${leader}f :Telescope find_files<cr>
nnoremap ${leader}r :Telescope live_grep<cr>
nnoremap ${leader}b :Telescope buffers<cr>
nnoremap ${leader}: :Telescope commands<cr>
'';
} }
{ {
@ -116,6 +123,11 @@
# TODO: vimwiki config # TODO: vimwiki config
} }
]; ];
extraConfig = ''
let mapleader = "${leader}"
let g:mapleader = "${leader}"
'';
}; };
}; };
} }