nvimdotfiles/after/plugin/telescope.lua
Marco a029b05a99 Some changes
1. Add ftplugin to set tabs for dart
2. Hide hidden files in telescope file picker
3. Specify python command in python-dap
2024-11-16 12:20:14 +01:00

31 lines
701 B
Lua

local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fp', builtin.live_grep);
vim.keymap.set('v', '<leader>fp', builtin.grep_string);
vim.keymap.set('n', '<leader>fs', builtin.lsp_dynamic_workspace_symbols);
require("telescope").setup({
pickers = {
find_files = { hidden = false }
},
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
}
}
}
})
require("telescope").load_extension("ui-select")
require("telescope").load_extension("file_browser")
vim.api.nvim_set_keymap(
"n",
"<leader>fb",
":Telescope file_browser path=%:p:h select_buffer=true<CR>",
{ noremap = true }
)