diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl index 3dd25b9..57a428c 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/telescope.fnl @@ -1,5 +1,8 @@ (module dotfiles.plugin.telescope - {autoload {nvim aniseed.nvim util dotfiles.util telescope telescope}}) + {autoload {nvim aniseed.nvim + util dotfiles.util + telescope telescope + project-nvim project_nvim}}) (def vimgrep_arguments [:ag :--nocolor @@ -11,23 +14,29 @@ :--hidden ; "--skip-vcs-ignores" ; "-g" "!.git/" + :--ignore + :.git :--follow]) +(telescope.load_extension :projects) (telescope.setup {:defaults {: vimgrep_arguments} - :pickers {:buffers {:mappings {:n {:d :delete_buffer}}}}}) + :pickers {:buffers {:mappings {:n {:d :delete_buffer}}}} + :extensions {:projects {:projects {}}}}) +(util.lnnoremap :fc "Telescope commands") +(util.lnnoremap :fC "Telescope command_history") (util.lnnoremap :ff "Telescope git_files hidden=true") (util.lnnoremap :f- "Telescope find_files") (util.lnnoremap :fg "Telescope live_grep") (util.lnnoremap "*" "Telescope grep_string") (util.lnnoremap :fb "Telescope buffers") +(util.lnnoremap :fd "Telescope diagnostics") (util.lnnoremap :fH "Telescope help_tags") +(util.lnnoremap :fh "Telescope oldfiles") +(util.lnnoremap :fp "Telescope projects") (util.lnnoremap :fm "Telescope keymaps") (util.lnnoremap :fM "Telescope marks") -(util.lnnoremap :fh "Telescope oldfiles") (util.lnnoremap :ft "Telescope filetypes") -(util.lnnoremap :fc "Telescope commands") -(util.lnnoremap :fC "Telescope command_history") (util.lnnoremap :fq "Telescope quickfix") (util.lnnoremap :fl "Telescope loclist") (util.lnnoremap :fsi "Telescope lsp_implementations") diff --git a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl index d228969..aa1c767 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl @@ -21,6 +21,7 @@ (def- packages {:Olical/aniseed {} :Olical/conjure {:mod :conjure} :Olical/fennel.vim {} + :ahmedkhalf/project.nvim {} :airblade/vim-gitgutter {} :clojure-vim/vim-jack-in {} :dhruvasagar/vim-table-mode {}