From 6145ea4f77ba02b8317c1baad7956d938f17a3fc Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Sat, 7 Sep 2024 19:30:19 -0400 Subject: [PATCH] Organize more plugins into their own files --- lazy-lock.json | 57 +++++----- lua/plugin/editor-plugins.lua | 66 +++++++++++- lua/plugin/file-manager-plugins.lua | 27 +++++ lua/plugin/telescope-plugins.lua | 67 ++++++++++++ lua/plugin/treesitter-plugins.lua | 28 +++++ lua/plugin/ui-plugins.lua | 10 -- lua/plugins.lua | 161 +--------------------------- 7 files changed, 220 insertions(+), 196 deletions(-) create mode 100644 lua/plugin/file-manager-plugins.lua create mode 100644 lua/plugin/telescope-plugins.lua create mode 100644 lua/plugin/treesitter-plugins.lua diff --git a/lazy-lock.json b/lazy-lock.json index 2ef4831..2ec8a8a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,9 +2,9 @@ "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, "auto-pairs": { "branch": "master", "commit": "39f06b873a8449af8ff6a3eee716d3da14d63a76" }, - "auto-session": { "branch": "main", "commit": "8c282a5faccfd2f8c9ed8a81e280ef405555bc62" }, - "blame.nvim": { "branch": "main", "commit": "cfc4385d979c7e21a5c7e237c391be0948c5ee95" }, - "bookmarks.nvim": { "branch": "main", "commit": "67610c62c8bb9b7799afd8a307b8727143bc097b" }, + "auto-session": { "branch": "main", "commit": "a90aa7730efa60fdcc7e00497a8f36d94a6da709" }, + "blame.nvim": { "branch": "main", "commit": "59cf695685c1d8d603d99b246cc8d42421937c09" }, + "bookmarks.nvim": { "branch": "main", "commit": "343b9f4cc8ba401382c737d7983e359270e05e1e" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" }, @@ -12,7 +12,8 @@ "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "conform.nvim": { "branch": "master", "commit": "62eba813b7501b39612146cbf29cd07f1d4ac29c" }, + "colorful-winsep.nvim": { "branch": "alpha", "commit": "49ffe1e45c94ce379596eb78ec9f88e69e2e2221" }, + "conform.nvim": { "branch": "master", "commit": "0ebe875d9c306f5fc829db38492ffff2a70d8e9d" }, "copilot.lua": { "branch": "master", "commit": "86537b286f18783f8b67bccd78a4ef4345679625" }, "dashboard-nvim": { "branch": "master", "commit": "fabf5feec96185817c732d47d363f34034212685" }, "detect-language.nvim": { "branch": "main", "commit": "670b2d78deb01b268ee8675c66b9f5256054109a" }, @@ -22,10 +23,10 @@ "easy-commands.nvim": { "branch": "main", "commit": "e1a4721d9d9805ed7115a4083b8095acf7a721fe" }, "faster.nvim": { "branch": "main", "commit": "e85c5bdff0cd1e17cbee855ae23c25e7b8e597cb" }, "flatten.nvim": { "branch": "main", "commit": "e420e531d2ab24aebcf7b3c9fca28e6c5c34964d" }, - "git-messenger.vim": { "branch": "master", "commit": "1ec2daa0722982a329887708f52a40497ceb86be" }, - "gitsigns.nvim": { "branch": "main", "commit": "80214a857ce512cc64964abddc1d8eb5a3e28396" }, + "git-messenger.vim": { "branch": "master", "commit": "edc603d4cda7894a743e383e16c638e206d03148" }, + "gitsigns.nvim": { "branch": "main", "commit": "1ef74b546732f185d0f806860fa5404df7614f28" }, "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" }, - "go.nvim": { "branch": "master", "commit": "81d8d0d90d3f6bcb44181800da3ed43356a26c1b" }, + "go.nvim": { "branch": "master", "commit": "8389adb56ab124b75d858df5f87b741eaca7b8b3" }, "grapple.nvim": { "branch": "main", "commit": "7aedc261b05a6c030397c4bc26416efbe746ebf1" }, "guess-indent.nvim": { "branch": "main", "commit": "6cd61f7a600bb756e558627cd2e740302c58e32d" }, "guihua.lua": { "branch": "master", "commit": "225db770e36aae6a1e9e3a65578095c8eb4038d3" }, @@ -35,8 +36,8 @@ "hurl.nvim": { "branch": "main", "commit": "c02e58be1e3941c1ee06c8cf15affaf3f740a26e" }, "img-clip.nvim": { "branch": "main", "commit": "28a32d811d69042f4fa5c3d5fa35571df2bc1623" }, "inc-rename.nvim": { "branch": "main", "commit": "8ba77017ca468f3029bf88ef409c2d20476ea66b" }, - "indent-blankline.nvim": { "branch": "master", "commit": "db926997af951da38e5004ec7b9fbdc480b48f5d" }, - "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, + "indent-blankline.nvim": { "branch": "master", "commit": "18603eb949eba08300799f64027af11ef922283f" }, + "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }, "lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" }, "lspsaga.nvim": { "branch": "main", "commit": "4ce44df854f447cf0a8972e5387b3aeb5efc798b" }, "lua-async-await": { "branch": "main", "commit": "652d94df34e97abe2d4a689edbc4270e7ead1a98" }, @@ -49,34 +50,34 @@ "move.nvim": { "branch": "main", "commit": "cccbd4ea9049ca5f99f025ffaddb7392359c7d6a" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, - "neogit": { "branch": "master", "commit": "6af8fc6b03210d0ac99398f8eff27c5be7b2ba8a" }, - "neominimap.nvim": { "branch": "main", "commit": "6a02b195e3134f2b4eb387ee530bf0bd5fb7f9a5" }, + "neogit": { "branch": "master", "commit": "9bc4ee89bb42be31a2f0b1da41e36e3e6cab9bbb" }, + "neominimap.nvim": { "branch": "main", "commit": "189d9a1ffe9587452e9e432e7abbd7424374e5ce" }, "nightfox.nvim": { "branch": "main", "commit": "d3e8b1acc095baf57af81bb5e89fe7c4359eb619" }, "noice.nvim": { "branch": "main", "commit": "448bb9c524a7601035449210838e374a30153172" }, "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, - "nvim-dap": { "branch": "master", "commit": "281a2e4cd1e7a17cea7ecb1745d84a8ab1249925" }, + "nvim-dap": { "branch": "master", "commit": "20a4859ebde1c9bc8e96f8cc11a20667e7fdd516" }, "nvim-java": { "branch": "main", "commit": "b3174e41ab51867123d8663eced53b33f1548522" }, "nvim-java-core": { "branch": "main", "commit": "5b03dca22fee76524a89e1c2dc1d73a9f0b1a3bb" }, "nvim-java-dap": { "branch": "main", "commit": "55f239532f7a3789d21ea68d1e795abc77484974" }, "nvim-java-refactor": { "branch": "main", "commit": "ea1420fed5463c9cc976c2b4175f434b3646f0f7" }, "nvim-java-test": { "branch": "main", "commit": "7f0f40e9c5b7eab5096d8bec6ac04251c6e81468" }, - "nvim-lint": { "branch": "master", "commit": "debabca63c0905b59ce596a55a8e33eafdf66342" }, - "nvim-listchars": { "branch": "main", "commit": "40b05e8375af11253434376154a9e6b3e9400747" }, - "nvim-lspconfig": { "branch": "master", "commit": "8a3610d29df83d8632f8ee7c3afc779c12725531" }, + "nvim-lint": { "branch": "master", "commit": "a7ce9c78a7c710c28bee56dfab10a5c0c80b7fb5" }, + "nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" }, "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, "nvim-recorder": { "branch": "main", "commit": "ce96792c1ff750977fc3affc56f0561b0c20a7e2" }, "nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" }, "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" }, "nvim-tree-pairs": { "branch": "main", "commit": "e7f7b6cc28dda6f3fa271ce63b0d371d5b7641da" }, - "nvim-treesitter": { "branch": "master", "commit": "7499f7379459db3b31c75cf5cec45f785be6e2c7" }, - "nvim-treesitter-context": { "branch": "master", "commit": "0f3332788e0bd37716fbd25f39120dcfd557c90f" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "41e3abf6bfd9a9a681eb1f788bdeba91c9004b2b" }, - "nvim-ufo": { "branch": "main", "commit": "b23a46aa06f5f653d107efbc67fd2aa3877ac344" }, - "nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" }, + "nvim-treesitter": { "branch": "master", "commit": "58030e6d6f1d6609b43dcb765d54539dcc6a1a76" }, + "nvim-treesitter-context": { "branch": "master", "commit": "e6cc783b74606d97ca9eff6494e3f5c2ca603a50" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "fe3deb7f67ce0cc4ebfe2ea6c1c7ae1c7a939d73" }, + "nvim-ufo": { "branch": "main", "commit": "5525f422d48f570262611ae2b6aa562c1c428bc5" }, + "nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" }, "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, - "oil.nvim": { "branch": "master", "commit": "4f3c6780ff272d8facab69a658cf8693582b7a54" }, + "oil-git-status.nvim": { "branch": "main", "commit": "a7ea816bac0cc3b8b4c3605e2f2b87960be60a05" }, + "oil.nvim": { "branch": "master", "commit": "1fe476daf0b3c108cb8ee1fc1226cc282fa2c9c1" }, "onedark.nvim": { "branch": "master", "commit": "fae34f7c635797f4bf62fb00e7d0516efa8abe37" }, "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" }, "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, @@ -84,24 +85,24 @@ "rainbow": { "branch": "master", "commit": "76ca1a20aa42edb5c65c19029968aad4625790dc" }, "refactoring.nvim": { "branch": "master", "commit": "c406fc5fb4d7ba5fce7b668637075fad6e75e9f8" }, "remember.nvim": { "branch": "master", "commit": "1b5176283bcf91d052b5755d9ba6e8ce14dfc95b" }, - "render-markdown.nvim": { "branch": "main", "commit": "e919a428cee007e4fc8f86fd0ddb311a723346c7" }, + "render-markdown.nvim": { "branch": "main", "commit": "2f9d4f0be8784ed4fef5960eb7b80bf60c5fdf56" }, "rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" }, - "satellite.nvim": { "branch": "main", "commit": "777ed56e1ef45ec808df701730b6597fc4fb0fbc" }, + "satellite.nvim": { "branch": "main", "commit": "dfc2b220f4969ebc49b0f2a94ab6faae240705bd" }, "scratch.nvim": { "branch": "main", "commit": "b397b0f2191778bd642e9e8326c119f3f84ab508" }, "snipe.nvim": { "branch": "main", "commit": "f1abd4aaaef6398b45dcddc9f1a40dd982f732b0" }, "sniprun": { "branch": "master", "commit": "a29d7b1c313b00980015ad79fa0ab512a0729940" }, "spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" }, - "telescope-file-browser.nvim": { "branch": "master", "commit": "a46780830b576049c675680650f773bedfa8677a" }, + "telescope-file-browser.nvim": { "branch": "master", "commit": "c5a14e0550699a7db575805cdb9ddc969ba0f1f5" }, "telescope-tabs": { "branch": "master", "commit": "0a678eefcb71ebe5cb0876aa71dd2e2583d27fd3" }, "telescope-undo.nvim": { "branch": "main", "commit": "51be9ae7c42fc27c0b05505e3a0162e0f05fbb6a" }, "telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" }, - "todo-comments.nvim": { "branch": "main", "commit": "8f45f353dc3649cb9b44cecda96827ea88128584" }, + "todo-comments.nvim": { "branch": "main", "commit": "319c01b99b7a8c9ac2066bf0efd4d6ec68fef444" }, "toggleterm.nvim": { "branch": "main", "commit": "48be57eaba817f038d61bbf64d2c597f578c0827" }, "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" }, "trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" }, "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, - "vim-visual-multi": { "branch": "master", "commit": "38b0e8d94a5499ccc17d6159763d32c79f53417b" }, + "vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" }, "vim-vsnip": { "branch": "master", "commit": "02a8e79295c9733434aab4e0e2b8c4b7cea9f3a9" }, - "which-key.nvim": { "branch": "main", "commit": "6c1584eb76b55629702716995cca4ae2798a9cca" }, - "yeet.nvim": { "branch": "master", "commit": "928a7526bfe72baf52806c40e6c6a57a60132d9d" } + "which-key.nvim": { "branch": "main", "commit": "bfec3d6bc0a9b0b2cb11644642f78c2c3915eef0" }, + "yeet.nvim": { "branch": "master", "commit": "4db5a452ec6b093e5e31cebc9bede2ca103cab5c" } } diff --git a/lua/plugin/editor-plugins.lua b/lua/plugin/editor-plugins.lua index 0b50370..3fc0ff0 100644 --- a/lua/plugin/editor-plugins.lua +++ b/lua/plugin/editor-plugins.lua @@ -6,7 +6,71 @@ return { require('detect-language').setup() end }, + { + 'kevinhwang91/nvim-ufo', + dependencies = 'kevinhwang91/promise-async', + config = function() + require('ufo').setup({ + provider_selector = function(bufnr, filetype, buftype) + return { 'treesitter', 'indent' } + end + }) + end + }, + { + "nvim-zh/colorful-winsep.nvim", + config = true, + event = { "WinLeave" }, + }, { 'pteroctopus/faster.nvim' - } + }, + { + 'nvim-pack/nvim-spectre' + }, + { + 'fedepujol/move.nvim', + config = function() + require('move').setup({ + require('move').setup({ + line = { + enable = true, -- Enables line movement + indent = true -- Toggles indentation + }, + block = { + enable = true, -- Enables block movement + indent = true -- Toggles indentation + }, + word = { + enable = true, -- Enables word movement + }, + char = { + enable = true -- Enables char movement + } + }) + }) + end + }, + { + 'smoka7/hop.nvim', + version = "*", + opts = {}, + }, + { + "cbochs/grapple.nvim", + dependencies = { + { "nvim-tree/nvim-web-devicons", lazy = true } + }, + opts = { + scope = "git", -- also try out "git_branch" + }, + event = { "BufReadPost", "BufNewFile" }, + cmd = "Grapple", + keys = { + { "M", "Grapple toggle", desc = "Grapple toggle tag" }, + { "m", "Grapple toggle_tags", desc = "Grapple open tags window" }, + { "n", "Grapple cycle_tags next", desc = "Grapple cycle next tag" }, + { "N", "Grapple cycle_tags prev", desc = "Grapple cycle previous tag" }, + }, + }, } diff --git a/lua/plugin/file-manager-plugins.lua b/lua/plugin/file-manager-plugins.lua new file mode 100644 index 0000000..34f600b --- /dev/null +++ b/lua/plugin/file-manager-plugins.lua @@ -0,0 +1,27 @@ +return { + { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { + "refractalize/oil-git-status.nvim", + + dependencies = { + "stevearc/oil.nvim", + }, + + config = true, + }, + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + } + }, +} diff --git a/lua/plugin/telescope-plugins.lua b/lua/plugin/telescope-plugins.lua new file mode 100644 index 0000000..7a44eb1 --- /dev/null +++ b/lua/plugin/telescope-plugins.lua @@ -0,0 +1,67 @@ +return { + { + 'nvim-telescope/telescope.nvim', + config = function() + local tl = require('telescope') + tl.load_extension("file_browser") + tl.setup { + pickers = { + find_files = { + theme = "dropdown", + hidden = true, + }, + }, + buffers = { + show_all_buffers = true, + sort_lastused = true, + theme = "dropdown", + previewer = false, + mappings = { + i = { + [""] = "delete_buffer", + }, + n = { + [""] = "delete_buffer", + }, + }, + } + } + end + }, + { + 'LukasPietzschmann/telescope-tabs', + requires = { 'nvim-telescope/telescope.nvim' }, + config = function() + require 'telescope-tabs'.setup { + -- Your custom config :^) + } + end + }, + { + "nvim-telescope/telescope-file-browser.nvim", + dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" } + }, + { + "debugloop/telescope-undo.nvim", + dependencies = { + { + "nvim-telescope/telescope.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + }, + }, + opts = { + extensions = { + undo = { + -- telescope-undo.nvim config, see below + }, + }, + }, + config = function(_, opts) + -- Calling telescope's setup from multiple specs does not hurt, it will happily merge the + -- configs for us. We won't use data, as everything is in it's own namespace (telescope + -- defaults, as well as each extension). + require("telescope").setup(opts) + require("telescope").load_extension("undo") + end, + }, +} diff --git a/lua/plugin/treesitter-plugins.lua b/lua/plugin/treesitter-plugins.lua new file mode 100644 index 0000000..1cadc3e --- /dev/null +++ b/lua/plugin/treesitter-plugins.lua @@ -0,0 +1,28 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + }, + { + "nvim-treesitter/nvim-treesitter-textobjects", + after = "nvim-treesitter", + requires = "nvim-treesitter/nvim-treesitter", + }, + { + "nvim-treesitter/nvim-treesitter-context", + }, + { + -- Press % to jump to the other side of a block + 'yorickpeterse/nvim-tree-pairs', + config = function() + require('tree-pairs').setup() + end + }, + { + 'Wansmer/treesj', + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + config = function() + require('treesj').setup({ --[[ your config ]] }) + end, + }, +} diff --git a/lua/plugin/ui-plugins.lua b/lua/plugin/ui-plugins.lua index 08179f1..7df18bc 100644 --- a/lua/plugin/ui-plugins.lua +++ b/lua/plugin/ui-plugins.lua @@ -31,16 +31,6 @@ return { } end }, - { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim", - -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information - } - }, { 'lewis6991/satellite.nvim' }, diff --git a/lua/plugins.lua b/lua/plugins.lua index be3db11..994dba1 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,6 +1,8 @@ local lsp_plugins = require 'plugin.lsp-plugins' local ui_plugins = require 'plugin.ui-plugins' local editor_plugins = require 'plugin.editor-plugins' +local file_manager_plugins = require 'plugin.file-manager-plugins' +local telescope_plugins = require 'plugin.telescope-plugins' return { -- Themes @@ -12,54 +14,8 @@ return { lsp_plugins, ui_plugins, editor_plugins, - { - 'nvim-pack/nvim-spectre' - }, - { - 'fedepujol/move.nvim', - config = function() - require('move').setup({ - require('move').setup({ - line = { - enable = true, -- Enables line movement - indent = true -- Toggles indentation - }, - block = { - enable = true, -- Enables block movement - indent = true -- Toggles indentation - }, - word = { - enable = true, -- Enables word movement - }, - char = { - enable = true -- Enables char movement - } - }) - }) - end - }, - { - 'smoka7/hop.nvim', - version = "*", - opts = {}, - }, - { - "cbochs/grapple.nvim", - dependencies = { - { "nvim-tree/nvim-web-devicons", lazy = true } - }, - opts = { - scope = "git", -- also try out "git_branch" - }, - event = { "BufReadPost", "BufNewFile" }, - cmd = "Grapple", - keys = { - { "M", "Grapple toggle", desc = "Grapple toggle tag" }, - { "m", "Grapple toggle_tags", desc = "Grapple open tags window" }, - { "n", "Grapple cycle_tags next", desc = "Grapple cycle next tag" }, - { "N", "Grapple cycle_tags prev", desc = "Grapple cycle previous tag" }, - }, - }, + file_manager_plugins, + telescope_plugins, { "leath-dub/snipe.nvim", keys = { @@ -228,71 +184,6 @@ return { run = "make install_jsregexp" }, { 'nvim-lua/plenary.nvim' }, - { - 'nvim-telescope/telescope.nvim', - config = function() - local tl = require('telescope') - tl.load_extension("file_browser") - tl.setup { - pickers = { - find_files = { - theme = "dropdown", - hidden = true, - }, - }, - buffers = { - show_all_buffers = true, - sort_lastused = true, - theme = "dropdown", - previewer = false, - mappings = { - i = { - [""] = "delete_buffer", - }, - n = { - [""] = "delete_buffer", - }, - }, - } - } - end - }, - { - 'LukasPietzschmann/telescope-tabs', - requires = { 'nvim-telescope/telescope.nvim' }, - config = function() - require 'telescope-tabs'.setup { - -- Your custom config :^) - } - end - }, - { - "nvim-telescope/telescope-file-browser.nvim", - dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" } - }, - { - "debugloop/telescope-undo.nvim", - dependencies = { - { - "nvim-telescope/telescope.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - }, - }, - opts = { - extensions = { - undo = { - -- telescope-undo.nvim config, see below - }, - }, - }, - config = function(_, opts) - -- Calling telescope's setup from multiple specs does not hurt, it will happily merge the - -- configs for us. We won't use data, as everything is in it's own namespace (telescope - -- defaults, as well as each extension). - require("telescope").setup(opts) - require("telescope").load_extension("undo") - end, - }, { "ThePrimeagen/refactoring.nvim", requires = { @@ -322,50 +213,6 @@ return { end, dependencies = { { 'nvim-tree/nvim-web-devicons' } } }, - { - 'kevinhwang91/nvim-ufo', - dependencies = 'kevinhwang91/promise-async', - config = function() - require('ufo').setup({ - provider_selector = function(bufnr, filetype, buftype) - return { 'treesitter', 'indent' } - end - }) - end - }, - { - 'stevearc/oil.nvim', - opts = {}, - -- Optional dependencies - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - -- Treesitter - { - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", - }, - { - "nvim-treesitter/nvim-treesitter-textobjects", - after = "nvim-treesitter", - requires = "nvim-treesitter/nvim-treesitter", - }, - { - "nvim-treesitter/nvim-treesitter-context", - }, - { - -- Press % to jump to the other side of a block - 'yorickpeterse/nvim-tree-pairs', - config = function() - require('tree-pairs').setup() - end - }, - { - 'Wansmer/treesj', - dependencies = { 'nvim-treesitter/nvim-treesitter' }, - config = function() - require('treesj').setup({ --[[ your config ]] }) - end, - }, { -- NOTE: Fuzzy search for commands -- Execute :Telescope commands