diff --git a/lua/plugins/nvim-ufo.lua b/lua/plugins/nvim-ufo.lua new file mode 100644 index 0000000..4a7f7fa --- /dev/null +++ b/lua/plugins/nvim-ufo.lua @@ -0,0 +1,15 @@ +return { + "kevinhwang91/nvim-ufo", + dependencies = { + "kevinhwang91/promise-async", + }, + config = function() + require("ufo").setup({ + vim.keymap.set("n", "zR", require("ufo").openAllFolds), + vim.keymap.set("n", "zM", require("ufo").closeAllFolds), + provider_selector = function(bufnr, filetype, buftype) + return { "treesitter", "indent" } + end, + }) + end, +} diff --git a/lua/plugins/telescope-heading.lua b/lua/plugins/telescope-heading.lua new file mode 100644 index 0000000..a0b33da --- /dev/null +++ b/lua/plugins/telescope-heading.lua @@ -0,0 +1,6 @@ +return { + "crispgm/telescope-heading.nvim", + config = function() + require("telescope").load_extension("heading") + end, +} diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua new file mode 100644 index 0000000..1b2e8ce --- /dev/null +++ b/lua/plugins/which-key.lua @@ -0,0 +1,14 @@ +return { + "folke/which-key.nvim", + event = "VeryLazy", + opts = {}, + keys = { + { + "?", + function() + require("which-key").show({ global = false }) + end, + desc = "Buffer Local Keymaps (which-key)", + }, + }, +}