diff --git a/rcfiles/neovim.lua b/rcfiles/neovim.lua index ac17985..38b1134 100644 --- a/rcfiles/neovim.lua +++ b/rcfiles/neovim.lua @@ -27,10 +27,14 @@ vim.opt.numberwidth = 5 -- textwidth but don't wrap vim.opt.formatoptions:remove { "t" } --- ctrl-p with ripgrep -vim.opt.grepprg="rg --color=never" -vim.g.ctrlp_user_command='rg %s --files --color=never --glob ""' -vim.g.ctrlp_use_caching=0 +-- telescope setup +local tbuiltin = require('telescope.builtin') +vim.keymap.set('n', 'fg', tbuiltin.live_grep, {}) +vim.keymap.set('n', 'ff', tbuiltin.find_files, {}) +vim.keymap.set('n', 'fo', tbuiltin.oldfiles, {}) +vim.keymap.set('n', 'fb', tbuiltin.buffers, {}) +vim.keymap.set('n', 'fh', tbuiltin.help_tags, {}) +vim.keymap.set('n', 'fs', tbuiltin.spell_suggest, {}) -- vimsense (rich presence) options vim.g.vimsense_small_text = "NeoVim" diff --git a/vim.nix b/vim.nix index 11f8df9..faff9e1 100644 --- a/vim.nix +++ b/vim.nix @@ -14,7 +14,7 @@ vimsence vim-wordy #:Wordy [kind], :NoWordy vim-pencil #:Pencil, :NoPencil - ctrlp-vim + telescope-nvim ]; extraLuaConfig = (builtins.readFile ./rcfiles/neovim.lua); };