From 49ec92873b406b495f5bf312c700b235cc6c0bea Mon Sep 17 00:00:00 2001 From: Joost Agterhoek Date: Wed, 16 Jul 2025 16:37:53 +0200 Subject: [PATCH] added nvim-ufo, telescope-heading, which-key --- lua/plugins/nvim-ufo.lua | 15 +++++++++++++++ lua/plugins/telescope-heading.lua | 6 ++++++ lua/plugins/which-key.lua | 14 ++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 lua/plugins/nvim-ufo.lua create mode 100644 lua/plugins/telescope-heading.lua create mode 100644 lua/plugins/which-key.lua 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)", + }, + }, +}