.dotfiles/nvim/lua/telescopeconfig.lua

31 lines
629 B
Lua
Raw Normal View History

2022-07-16 14:51:00 +02:00
-- TELESCOPE
2023-02-23 15:29:31 +01:00
require("telescope").setup {
defaults = {
-- ....
},
pickers = {
find_files = {
find_command = { "fd",
"--type", "f",
"--strip-cwd-prefix",
-- "--exclude", "node_modules",
"--exclude", ".git",
}
},
}
}
-- FUNCTIONS
local function find()
require("telescope.builtin").find_files {
hidden = true
}
end
2022-07-16 14:51:00 +02:00
-- KEYMAPS
vim.keymap.set('n', '<C-y>', '<cmd>Telescope buffers<CR>')
2023-02-23 15:29:31 +01:00
vim.keymap.set('n', '<leader>f', find)
2022-07-16 14:51:00 +02:00
vim.keymap.set('n', '<leader>l', '<cmd>Telescope live_grep<CR>')
vim.keymap.set('n', '<silent> gy', '<cmd>Telescope treesitter<CR>')
2022-01-23 23:24:50 +01:00