diff options
Diffstat (limited to 'user/nvim')
-rw-r--r-- | user/nvim/init.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/user/nvim/init.lua b/user/nvim/init.lua index ddeb6940..d1dcb88b 100644 --- a/user/nvim/init.lua +++ b/user/nvim/init.lua @@ -183,3 +183,28 @@ keyset("n", "<space>j", ":<C-u>CocNext<cr>", opts) keyset("n", "<space>k", ":<C-u>CocPrev<cr>", opts) -- Resume latest coc list keyset("n", "<space>p", ":<C-u>CocListResume<cr>", opts) + +local telescope = require("telescope") +telescope.setup { + defaults = { + mappings = { + i ={ + ["<C-h>"] = "which_key" + } + } + }, + extensions = { + fzf = { + fuzzy = true, + override_generic_sorter = true, + override_file_sorter = true, + case_mode = "smart_case", + } + } +} +telescope.load_extension("fzf") +local ts_builtin = require('telescope.builtin') +keyset("n", "<leader>ff", ts_builtin.find_files, {}) +keyset("n", "<leader>fg", ts_builtin.live_grep, {}) +keyset("n", "<leader>bb", ts_builtin.buffers, {}) +keyset("n", "<leader>fh", ts_builtin.help_tags, {}) |