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")
 
  13                 vim.g.loaded_telescope = nil
 
  16                 require("telescope").setup({
 
  18                                 color_devicons = false,
 
  22                                                 fuzzy = true, -- false will only do exact matching
 
  23                                                 --override_generic_sorter = true, -- override the generic sorter
 
  24                                                 --override_file_sorter = true, -- override the file sorter
 
  25                                                 --case_mode = "smart_case", -- or "ignore_case" or "respect_case"
 
  26                                                 -- the default case_mode is "smart_case"
 
  29                                 file_ignore_patterns = { "node_modules", "%.git/", "dist/", "build/", "target/", "result/" },
 
  30                                 initial_mode = "insert",
 
  33                                         horizontal = { preview_width = 0.550000, prompt_position = "top" },
 
  35                                         vertical = { mirror = false },
 
  38                                 layout_strategy = "horizontal",
 
  39                                 path_display = { "absolute" },
 
  41                                         find_command = { "fd" },
 
  43                                 prompt_prefix = "     ",
 
  44                                 selection_caret = "  ",
 
  45                                 selection_strategy = "reset",
 
  46                                 set_env = { COLORTERM = "truecolor" },
 
  47                                 sorting_strategy = "ascending",
 
  63                                         find_command = { "fd", "--type=file" },
 
  67                 local telescope = require("telescope")
 
  68                 telescope.load_extension("fzf")
 
  69                 telescope.load_extension("conflicts")
 
  70                 --telescope.load_extension("noice")
 
  75                         "<cmd>Telescope find_files<CR>",
 
  76                         desc = "Find files [Telescope]",
 
  87                         "<cmd>Telescope live_grep<CR>",
 
  88                         desc = "Live grep [Telescope]",
 
 100                                 require("telescope.builtin").live_grep({ grep_open_files = true })
 
 102                         desc = "Buffers grep [Telescope]",
 
 113                         "<cmd>Telescope buffers<CR>",
 
 114                         desc = "Buffers [Telescope]",
 
 125                         "<cmd>Telescope buffers<CR>",
 
 126                         desc = "Buffers [Telescope]",
 
 137                         "<cmd>Telescope help_tags<CR>",
 
 138                         desc = "Help tags [Telescope]",
 
 149                         "<cmd>Telescope<CR>",
 
 150                         desc = "Open [Telescope]",
 
 161                         "<cmd>Telescope resume<CR>",
 
 162                         desc = "Resume (previous search) [Telescope]",
 
 173                         "<cmd>Telescope git_commits<CR>",
 
 174                         desc = "Git commits [Telescope]",
 
 185                         "<cmd>Telescope git_bcommits<CR>",
 
 186                         desc = "Git buffer commits [Telescope]",
 
 197                         "<cmd>Telescope git_branches<CR>",
 
 198                         desc = "Git branches [Telescope]",
 
 209                         "<cmd>Telescope git_status<CR>",
 
 210                         desc = "Git status [Telescope]",
 
 221                         "<cmd>Telescope git_stash<CR>",
 
 222                         desc = "Git stash [Telescope]",
 
 233                         "<cmd>Telescope lsp_document_symbols<CR>",
 
 234                         desc = "LSP Document Symbols [Telescope]",
 
 245                         "<cmd>Telescope lsp_workspace_symbols<CR>",
 
 246                         desc = "LSP Workspace Symbols [Telescope]",
 
 257                         "<cmd>Telescope lsp_references<CR>",
 
 258                         desc = "LSP References [Telescope]",
 
 269                         "<cmd>Telescope lsp_implementations<CR>",
 
 270                         desc = "LSP Implementations [Telescope]",
 
 281                         "<cmd>Telescope lsp_definitions<CR>",
 
 282                         desc = "LSP Definitions [Telescope]",
 
 293                         "<cmd>Telescope lsp_type_definitions<CR>",
 
 294                         desc = "LSP Type Definitions [Telescope]",
 
 305                         "<cmd>Telescope diagnostics<CR>",
 
 306                         desc = "Diagnostics [Telescope]",
 
 317                         "<cmd>Telescope treesitter<CR>",
 
 318                         desc = "Treesitter [Telescope]",