From 9365a8e96827cbf7bc5adad6d29bcd05b4d761b2 Mon Sep 17 00:00:00 2001 From: bee Date: Tue, 5 May 2026 22:37:10 +0530 Subject: Migrate from nixcats to nix-wrapper-modules --- lua/plugins/picker.lua | 97 -------------------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 lua/plugins/picker.lua (limited to 'lua/plugins/picker.lua') diff --git a/lua/plugins/picker.lua b/lua/plugins/picker.lua deleted file mode 100644 index bf60d6a..0000000 --- a/lua/plugins/picker.lua +++ /dev/null @@ -1,97 +0,0 @@ -local telescope_builtin = function(key, action, desc) - return { - key, - "Telescope " .. action .. "", - mode = { "n" }, - desc = desc, - } -end - -return { - { - "telescope.nvim", - event = "DeferredUIEnter", - for_cat = "core.picker", - keys = { - telescope_builtin("ff", "find_files", "Search files in cwd"), - telescope_builtin("fb", "buffers", "Search files in cwd"), - telescope_builtin("fo", "oldfiles", "Recent files"), - telescope_builtin("fr", "registers", "Registers"), - telescope_builtin("fj", "jumplist", "Jump list"), - telescope_builtin("fm", "marks", "Marks"), - - telescope_builtin("fq", "quickfix", "Quickfix list"), - telescope_builtin("fl", "loclist", "Location list"), - - telescope_builtin("st", "treesitter", "Treesitter symbols"), - - telescope_builtin("sc", "commands", "Commands"), - telescope_builtin("sp", "spell_suggest", "Spell suggestions"), - - telescope_builtin("sg", "live_grep", "Search by grep"), - telescope_builtin("ss", "grep_string", "Search string"), - telescope_builtin("sk", "keymaps", "Search keymaps"), - telescope_builtin("sh", "help_tags", "Search help tags"), - telescope_builtin("/", "current_buffer_fuzzy_find", "Search in current buffer"), - - telescope_builtin("gc", "git_commits", "Git commits"), - telescope_builtin("gB", "git_branches", "Git branches"), - telescope_builtin("gs", "git_status", "Git status"), - telescope_builtin("gS", "git_stash", "Git stash"), - - telescope_builtin("ls", "lsp_document_symbols", "Document symbols"), - telescope_builtin("lS", "lsp_workspace_symbols", "Workspace symbols"), - telescope_builtin("lds", "lsp_dynamic_workspace_symbols", "Workspace symbols"), - telescope_builtin("ld", "diagnostics", "Diagnostics"), - telescope_builtin("lD", "lsp_definitions", "LSP definitions"), - telescope_builtin("li", "lsp_incoming_calls", "LSP incoming calls"), - telescope_builtin("lo", "lsp_outgoing_calls", "LSP outgoing calls"), - telescope_builtin("lt", "lsp_type_definitions", "LSP type definitions"), - telescope_builtin("grr", "lsp_references", "LSP references"), - telescope_builtin("gri", "lsp_implementations", "LSP implementations"), - }, - load = function(name) - require("lzextras").loaders.multi({ - name, - "telescope-fzf-native.nvim", - "telescope-ui-select.nvim", - }) - end, - after = function() - require("telescope").setup({ - defaults = { - mappings = { - i = { - [""] = "to_fuzzy_refine", - }, - }, - }, - pickers = { - buffers = { - mappings = { - i = { - -- [""] = "delete_buffer", - }, - n = { - ["d"] = "delete_buffer", - }, - }, - }, - }, - extensions = { - fzf = { - fuzzy = true, - override_generic_sorter = true, - override_file_sorter = true, - case_mode = "smart_case", - }, - ["ui-select"] = { - require("telescope.themes").get_dropdown({}), - }, - }, - }) - require("telescope").load_extension("fzf") - require("telescope").load_extension("ui-select") - end, - }, -} -- cgit v1.3.1