1 -- Find, Filter, Preview, Pick. All lua, all the time.
2 -- https://github.com/nvim-telescope/telescope.nvim
8 vim.cmd.packadd("telescope-fzf-native.nvim")
9 vim.cmd.packadd("telescope-git-conflicts.nvim")
12 vim.g.loaded_telescope = nil
15 require("telescope").setup({
17 color_devicons = false,
21 fuzzy = true, -- false will only do exact matching
22 --override_generic_sorter = true, -- override the generic sorter
23 --override_file_sorter = true, -- override the file sorter
24 --case_mode = "smart_case", -- or "ignore_case" or "respect_case"
25 -- the default case_mode is "smart_case"
28 file_ignore_patterns = { "node_modules", "%.git/", "dist/", "build/", "target/", "result/" },
29 initial_mode = "insert",
32 horizontal = { preview_width = 0.550000, prompt_position = "top" },
34 vertical = { mirror = false },
37 layout_strategy = "horizontal",
38 path_display = { "absolute" },
40 find_command = { "fd" },
42 prompt_prefix = " ",
43 selection_caret = " ",
44 selection_strategy = "reset",
45 set_env = { COLORTERM = "truecolor" },
46 sorting_strategy = "ascending",
62 find_command = { "fd", "--type=file" },
66 local telescope = require("telescope")
67 telescope.load_extension("fzf")
68 telescope.load_extension("conflicts")
69 --telescope.load_extension("noice")
74 "<cmd>Telescope find_files<CR>",
75 desc = "Find files [Telescope]",
86 "<cmd>Telescope live_grep<CR>",
87 desc = "Live grep [Telescope]",
98 "<cmd>Telescope buffers<CR>",
99 desc = "Buffers [Telescope]",
110 "<cmd>Telescope buffers<CR>",
111 desc = "Buffers [Telescope]",
122 "<cmd>Telescope help_tags<CR>",
123 desc = "Help tags [Telescope]",
134 "<cmd>Telescope<CR>",
135 desc = "Open [Telescope]",
146 "<cmd>Telescope resume<CR>",
147 desc = "Resume (previous search) [Telescope]",
158 "<cmd>Telescope git_commits<CR>",
159 desc = "Git commits [Telescope]",
170 "<cmd>Telescope git_bcommits<CR>",
171 desc = "Git buffer commits [Telescope]",
182 "<cmd>Telescope git_branches<CR>",
183 desc = "Git branches [Telescope]",
194 "<cmd>Telescope git_status<CR>",
195 desc = "Git status [Telescope]",
206 "<cmd>Telescope git_stash<CR>",
207 desc = "Git stash [Telescope]",
218 "<cmd>Telescope lsp_document_symbols<CR>",
219 desc = "LSP Document Symbols [Telescope]",
230 "<cmd>Telescope lsp_workspace_symbols<CR>",
231 desc = "LSP Workspace Symbols [Telescope]",
242 "<cmd>Telescope lsp_references<CR>",
243 desc = "LSP References [Telescope]",
254 "<cmd>Telescope lsp_implementations<CR>",
255 desc = "LSP Implementations [Telescope]",
266 "<cmd>Telescope lsp_definitions<CR>",
267 desc = "LSP Definitions [Telescope]",
278 "<cmd>Telescope lsp_type_definitions<CR>",
279 desc = "LSP Type Definitions [Telescope]",
290 "<cmd>Telescope diagnostics<CR>",
291 desc = "Diagnostics [Telescope]",
302 "<cmd>Telescope treesitter<CR>",
303 desc = "Treesitter [Telescope]",