Use telescope instead of ctrl+p

This commit is contained in:
Leonora Tindall 2024-08-29 15:40:41 -05:00
parent 5929d6cfe7
commit e70ca1e87a
2 changed files with 9 additions and 5 deletions

View File

@ -27,10 +27,14 @@ vim.opt.numberwidth = 5
-- textwidth but don't wrap -- textwidth but don't wrap
vim.opt.formatoptions:remove { "t" } vim.opt.formatoptions:remove { "t" }
-- ctrl-p with ripgrep -- telescope setup
vim.opt.grepprg="rg --color=never" local tbuiltin = require('telescope.builtin')
vim.g.ctrlp_user_command='rg %s --files --color=never --glob ""' vim.keymap.set('n', '<leader>fg', tbuiltin.live_grep, {})
vim.g.ctrlp_use_caching=0 vim.keymap.set('n', '<leader>ff', tbuiltin.find_files, {})
vim.keymap.set('n', '<leader>fo', tbuiltin.oldfiles, {})
vim.keymap.set('n', '<leader>fb', tbuiltin.buffers, {})
vim.keymap.set('n', '<leader>fh', tbuiltin.help_tags, {})
vim.keymap.set('n', '<leader>fs', tbuiltin.spell_suggest, {})
-- vimsense (rich presence) options -- vimsense (rich presence) options
vim.g.vimsense_small_text = "NeoVim" vim.g.vimsense_small_text = "NeoVim"

View File

@ -14,7 +14,7 @@
vimsence vimsence
vim-wordy #:Wordy [kind], :NoWordy vim-wordy #:Wordy [kind], :NoWordy
vim-pencil #:Pencil, :NoPencil vim-pencil #:Pencil, :NoPencil
ctrlp-vim telescope-nvim
]; ];
extraLuaConfig = (builtins.readFile ./rcfiles/neovim.lua); extraLuaConfig = (builtins.readFile ./rcfiles/neovim.lua);
}; };