dotfiles/home/.config/nvim/lua/plugins/telescope.lua
Marko Korhonen 243f8caaab
Nvim: change telescope keybind
ctrl-t is used by default with tagstack
2023-09-20 16:52:06 +03:00

21 lines
541 B
Lua

return function()
local telescope = require("telescope")
local builtin = require("telescope.builtin")
telescope.setup({
pickers = {
find_files = { find_command = { "fd", "-Ht", "f" } },
lsp_references = { show_line = false },
},
})
telescope.load_extension("fzf")
telescope.load_extension("ui-select")
telescope.load_extension("cder")
-- Keybinds
vim.keymap.set("n", "<C-s>", vim.cmd.Telescope)
vim.keymap.set("n", "<C-f>", builtin.find_files)
vim.keymap.set("n", "<C-g>", builtin.live_grep)
end