diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-09-10 00:02:12 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-09-10 00:03:04 +0300 |
commit | c2ff3597a5dd655f0e248612eb4e7190c656c6ab (patch) | |
tree | c38b8705133c45442b0b51c9bd2cb4dc73ceb96f | |
parent | f6d68fc38799e97e21b1385a2ef3cfd2ac65d64a (diff) | |
download | dotfiles-c2ff3597a5dd655f0e248612eb4e7190c656c6ab.tar.gz |
feat(nvim): improve Telescope command filter
-rw-r--r-- | nvim/.config/nvim/init.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 921859c..9c16e1a 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -65,8 +65,9 @@ nnoremap <leader>ev :vs $MYVIMRC<CR> nnoremap <leader>sv :source $MYVIMRC<CR> " Telescope -nnoremap <leader>f :Telescope find_files find_command=rg,--files,--iglob,!.git,--hidden<CR> -nnoremap <Leader>r :Telescope live_grep<CR> +" TODO: move this ugly line into a function or smth +nnoremap <silent><leader>ff :lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown({ previewer = false, find_command = { 'rg', '--files', '--iglob', '!.git', '--hidden' } }))<CR> +nnoremap <silent><Leader>fr :Telescope live_grep<CR> " Plugin-specific configuration source ~/.config/nvim/startify.vim |