Refine some more keybinds to new format and rework Telescope config

This commit is contained in:
Marko Korhonen 2022-08-24 00:38:10 +03:00
parent 493660374d
commit 09e109164a
4 changed files with 19 additions and 22 deletions

View file

@ -1,6 +1,16 @@
return function()
local telescope = require('telescope')
telescope.setup {}
local builtin = require('telescope.builtin')
telescope.setup {
pickers = {find_files = {find_command = {"fd", "-Ht", "f"}}}
}
telescope.load_extension('fzf')
telescope.load_extension('ui-select')
-- Keybinds
vim.keymap.set('n', '<C-t>', vim.cmd.Telescope)
vim.keymap.set('n', '<C-f>', builtin.find_files)
vim.keymap.set('n', '<C-g>', builtin.live_grep)
end