added nvim-ufo, telescope-heading, which-key

This commit is contained in:
Joost Agterhoek 2025-07-16 16:37:53 +02:00
parent 85fbc1c6e8
commit 49ec92873b
3 changed files with 35 additions and 0 deletions

15
lua/plugins/nvim-ufo.lua Normal file
View File

@ -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,
}

View File

@ -0,0 +1,6 @@
return {
"crispgm/telescope-heading.nvim",
config = function()
require("telescope").load_extension("heading")
end,
}

14
lua/plugins/which-key.lua Normal file
View File

@ -0,0 +1,14 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}