Nvim: turn on smart path for telescope
This commit is contained in:
parent
098f21d4ba
commit
c9f95761bb
1 changed files with 13 additions and 12 deletions
|
@ -1,17 +1,18 @@
|
||||||
return function()
|
return function()
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
|
|
||||||
telescope.setup({
|
telescope.setup({
|
||||||
pickers = { find_files = { find_command = { "fd", "-Ht", "f" } } },
|
defaults = { path_display = { "smart" } },
|
||||||
})
|
pickers = { find_files = { find_command = { "fd", "-Ht", "f" } } },
|
||||||
|
})
|
||||||
|
|
||||||
telescope.load_extension("fzf")
|
telescope.load_extension("fzf")
|
||||||
telescope.load_extension("ui-select")
|
telescope.load_extension("ui-select")
|
||||||
telescope.load_extension("cder")
|
telescope.load_extension("cder")
|
||||||
|
|
||||||
-- Keybinds
|
-- Keybinds
|
||||||
vim.keymap.set("n", "<C-t>", vim.cmd.Telescope)
|
vim.keymap.set("n", "<C-t>", vim.cmd.Telescope)
|
||||||
vim.keymap.set("n", "<C-f>", builtin.find_files)
|
vim.keymap.set("n", "<C-f>", builtin.find_files)
|
||||||
vim.keymap.set("n", "<C-g>", builtin.live_grep)
|
vim.keymap.set("n", "<C-g>", builtin.live_grep)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue