1 -- Find, Filter, Preview, Pick. All lua, all the time.
2 -- https://github.com/nvim-telescope/telescope.nvim
9 vim.cmd.packadd("telescope-fzf-native.nvim")
10 vim.cmd.packadd("telescope-git-conflicts.nvim")
11 vim.cmd.packadd("telescope-live-grep-args.nvim")
14 vim.g.loaded_telescope = nil
17 require("telescope").setup({
19 color_devicons = false,
23 fuzzy = true, -- false will only do exact matching
24 --override_generic_sorter = true, -- override the generic sorter
25 --override_file_sorter = true, -- override the file sorter
26 --case_mode = "smart_case", -- or "ignore_case" or "respect_case"
27 -- the default case_mode is "smart_case"
30 file_ignore_patterns = {
38 initial_mode = "insert",
41 horizontal = { preview_width = 0.550000, prompt_position = "top" },
43 vertical = { mirror = false },
46 layout_strategy = "horizontal",
47 path_display = { "absolute" },
49 find_command = { "fd" },
51 prompt_prefix = " ",
52 selection_caret = " ",
53 selection_strategy = "reset",
54 set_env = { COLORTERM = "truecolor" },
55 sorting_strategy = "ascending",
71 find_command = { "fd", "--type=file" },
75 local telescope = require("telescope")
76 telescope.load_extension("conflicts")
77 telescope.load_extension("fzf")
78 telescope.load_extension("live_grep_args")
79 --telescope.load_extension("noice")
84 "<cmd>Telescope find_files<CR>",
85 desc = "Find files [Telescope]",
96 "<cmd>Telescope live_grep<CR>",
97 desc = "Live grep [Telescope]",
109 require("telescope-live-grep-args.shortcuts").grep_word_under_cursor()
111 desc = "[G]rep word under [C]ursor [Telescope]",
123 require("telescope.builtin").live_grep({ grep_open_files = true })
125 desc = "Buffers grep [Telescope]",
136 "<cmd>Telescope buffers<CR>",
137 desc = "Buffers [Telescope]",
148 "<cmd>Telescope buffers<CR>",
149 desc = "Buffers [Telescope]",
160 "<cmd>Telescope help_tags<CR>",
161 desc = "Help tags [Telescope]",
172 "<cmd>Telescope<CR>",
173 desc = "Open [Telescope]",
184 "<cmd>Telescope resume<CR>",
185 desc = "Resume (previous search) [Telescope]",
196 "<cmd>Telescope git_commits<CR>",
197 desc = "Git commits [Telescope]",
208 "<cmd>Telescope git_bcommits<CR>",
209 desc = "Git buffer commits [Telescope]",
220 "<cmd>Telescope git_branches<CR>",
221 desc = "Git branches [Telescope]",
232 "<cmd>Telescope git_status<CR>",
233 desc = "Git status [Telescope]",
244 "<cmd>Telescope git_stash<CR>",
245 desc = "Git stash [Telescope]",
256 "<cmd>Telescope lsp_document_symbols<CR>",
257 desc = "LSP Document Symbols [Telescope]",
268 "<cmd>Telescope lsp_workspace_symbols<CR>",
269 desc = "LSP Workspace Symbols [Telescope]",
280 "<cmd>Telescope lsp_references<CR>",
281 desc = "LSP References [Telescope]",
292 "<cmd>Telescope lsp_implementations<CR>",
293 desc = "LSP Implementations [Telescope]",
304 "<cmd>Telescope lsp_definitions<CR>",
305 desc = "LSP Definitions [Telescope]",
316 "<cmd>Telescope lsp_type_definitions<CR>",
317 desc = "LSP Type Definitions [Telescope]",
328 "<cmd>Telescope diagnostics<CR>",
329 desc = "Diagnostics [Telescope]",
340 "<cmd>Telescope treesitter<CR>",
341 desc = "Treesitter [Telescope]",