diff options
Diffstat (limited to 'nvim/.config/nvim/lua/bundles/telescope.lua')
-rwxr-xr-x | nvim/.config/nvim/lua/bundles/telescope.lua | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/bundles/telescope.lua b/nvim/.config/nvim/lua/bundles/telescope.lua new file mode 100755 index 0000000..a272fce --- /dev/null +++ b/nvim/.config/nvim/lua/bundles/telescope.lua @@ -0,0 +1,72 @@ +require("telescope").setup { + defaults = { + mappints = {}, + }, + pickers = {}, + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown(), + }, + }, +} + +-- require("telescope").setup { +-- extensions = { +-- fzf = {}, +-- wrap_results = true, +-- history = { +-- path = vim.fs.joinpath(data, "telescope_history.sqlite3"), +-- limit = 100, +-- }, +-- ["ui-select"] = { +-- require("telescope.themes").get_dropdown(), +-- }, +-- }, +-- defaults = { +-- -- configure to use ripgrep +-- vimgrep_arguments = { +-- "rg", +-- "--follow", -- Follow symbolic links +-- "--hidden", -- for hidden files +-- "--no-heading", -- Don't group matches by each file +-- "--with-filename", -- Print the file path with the matched lines +-- "--line-number", -- Show line numbers +-- "--column", -- Show column numbers +-- "--smart-case", -- Smart case search +-- +-- -- Exclude some patterns from search +-- "--glob=!**/.git/*", +-- "--glob=!**/.idea/*", +-- "--glob=!**/.vscode/*", +-- "--glob=!**/build/*", +-- "--glob=!**/dist/*", +-- "--glob=!**/yarn.lock", +-- "--glob=!**/package-lock.json", +-- }, +-- }, +-- pickers = { +-- find_files = { +-- hidden = true, +-- -- needed to exclude some files & dirs from general search +-- -- when not included or specified in .gitignore +-- find_command = { +-- "rg", +-- "--files", +-- "--hidden", +-- "--glob=!**/.git/*", +-- "--glob=!**/.idea/*", +-- "--glob=!**/.vscode/*", +-- "--glob=!**/build/*", +-- "--glob=!**/dist/*", +-- "--glob=!**/yarn.lock", +-- "--glob=!**/package-lock.json", +-- }, +-- }, +-- }, +-- } +-- + +pcall(require("telescope").load_extension, "fzf") +pcall(require("telescope").load_extension, "smart_history") +pcall(require("telescope").load_extension, "rest") +pcall(require("telescope").load_extension, "ui-select") |