From 2b623f6eee7f4a8c15b9620fe678dca5a78f2ae9 Mon Sep 17 00:00:00 2001 From: Proctor Date: Tue, 31 Jan 2023 13:14:54 -0600 Subject: [PATCH] Neovim: Update telescope settings - removed code actions key mapping - updates file_browser to find_files --- .../nvim/fnl/dotfiles/plugin/telescope.fnl | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl index 0bce118..3dd25b9 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl @@ -1,23 +1,25 @@ (module dotfiles.plugin.telescope - {autoload {nvim aniseed.nvim - util dotfiles.util - telescope telescope}}) + {autoload {nvim aniseed.nvim util dotfiles.util telescope telescope}}) -(telescope.setup - {:defaults - {:vimgrep_arguments ["ag" "--nocolor" "--noheading" - "--number" "--column" "--nobreak" - "--smart-case" "--hidden" "--follow" ; "--skip-vcs-ignores" +(def vimgrep_arguments [:ag + :--nocolor + :--noheading + :--number + :--column + :--nobreak + :--smart-case + :--hidden + ; "--skip-vcs-ignores" ; "-g" "!.git/" - ]} - :pickers - {:buffers {:mappings {:n {:d :delete_buffer}}}}}) + :--follow]) +(telescope.setup {:defaults {: vimgrep_arguments} + :pickers {:buffers {:mappings {:n {:d :delete_buffer}}}}}) (util.lnnoremap :ff "Telescope git_files hidden=true") -(util.lnnoremap :f- "Telescope file_browser") +(util.lnnoremap :f- "Telescope find_files") (util.lnnoremap :fg "Telescope live_grep") -(util.lnnoremap :* "Telescope grep_string") +(util.lnnoremap "*" "Telescope grep_string") (util.lnnoremap :fb "Telescope buffers") (util.lnnoremap :fH "Telescope help_tags") (util.lnnoremap :fm "Telescope keymaps") @@ -28,7 +30,6 @@ (util.lnnoremap :fC "Telescope command_history") (util.lnnoremap :fq "Telescope quickfix") (util.lnnoremap :fl "Telescope loclist") -(util.lnnoremap :fsa "Telescope lsp_code_actions") (util.lnnoremap :fsi "Telescope lsp_implementations") (util.lnnoremap :fsr "Telescope lsp_references") (util.lnnoremap :fsS "Telescope lsp_document_symbols")