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")
12 vim.cmd.packadd("telescope-smart-history.nvim")
15 vim.g.loaded_telescope = nil
18 require("telescope").setup({
20 color_devicons = false,
24 fuzzy = true, -- false will only do exact matching
25 --override_generic_sorter = true, -- override the generic sorter
26 --override_file_sorter = true, -- override the file sorter
27 --case_mode = "smart_case", -- or "ignore_case" or "respect_case"
28 -- the default case_mode is "smart_case"
31 file_ignore_patterns = {
40 path = "~/.local/share/nvim/databases/telescope_history.sqlite3",
43 initial_mode = "insert",
46 horizontal = { preview_width = 0.550000, prompt_position = "top" },
48 vertical = { mirror = false },
51 layout_strategy = "horizontal",
52 path_display = { "absolute" },
54 find_command = { "fd" },
56 prompt_prefix = " ",
57 selection_caret = " ",
58 selection_strategy = "reset",
59 set_env = { COLORTERM = "truecolor" },
60 sorting_strategy = "ascending",
76 find_command = { "fd", "--type=file" },
80 local telescope = require("telescope")
81 telescope.load_extension("conflicts")
82 telescope.load_extension("fzf")
83 telescope.load_extension("live_grep_args")
84 telescope.load_extension("smart_history")
85 --telescope.load_extension("noice")
90 "<cmd>Telescope find_files<CR>",
91 desc = "Find files [Telescope]",
102 "<cmd>Telescope live_grep<CR>",
103 desc = "Live grep [Telescope]",
115 require("telescope-live-grep-args.shortcuts").grep_word_under_cursor()
117 desc = "[G]rep word under [C]ursor [Telescope]",
129 require("telescope.builtin").live_grep({ grep_open_files = true })
131 desc = "Buffers grep [Telescope]",
142 "<cmd>Telescope buffers<CR>",
143 desc = "Buffers [Telescope]",
154 "<cmd>Telescope buffers<CR>",
155 desc = "Buffers [Telescope]",
166 "<cmd>Telescope help_tags<CR>",
167 desc = "Help tags [Telescope]",
178 "<cmd>Telescope<CR>",
179 desc = "Open [Telescope]",
190 "<cmd>Telescope resume<CR>",
191 desc = "Resume (previous search) [Telescope]",
202 "<cmd>Telescope git_commits<CR>",
203 desc = "Git commits [Telescope]",
214 "<cmd>Telescope git_bcommits<CR>",
215 desc = "Git buffer commits [Telescope]",
226 "<cmd>Telescope git_branches<CR>",
227 desc = "Git branches [Telescope]",
238 "<cmd>Telescope git_status<CR>",
239 desc = "Git status [Telescope]",
250 "<cmd>Telescope git_stash<CR>",
251 desc = "Git stash [Telescope]",
262 "<cmd>Telescope lsp_document_symbols<CR>",
263 desc = "LSP Document Symbols [Telescope]",
274 "<cmd>Telescope lsp_workspace_symbols<CR>",
275 desc = "LSP Workspace Symbols [Telescope]",
286 "<cmd>Telescope lsp_references<CR>",
287 desc = "LSP References [Telescope]",
298 "<cmd>Telescope lsp_implementations<CR>",
299 desc = "LSP Implementations [Telescope]",
310 "<cmd>Telescope lsp_definitions<CR>",
311 desc = "LSP Definitions [Telescope]",
322 "<cmd>Telescope lsp_type_definitions<CR>",
323 desc = "LSP Type Definitions [Telescope]",
334 "<cmd>Telescope diagnostics<CR>",
335 desc = "Diagnostics [Telescope]",
346 "<cmd>Telescope treesitter<CR>",
347 desc = "Treesitter [Telescope]",