added nvim-ufo, telescope-heading, which-key
This commit is contained in:
parent
85fbc1c6e8
commit
49ec92873b
15
lua/plugins/nvim-ufo.lua
Normal file
15
lua/plugins/nvim-ufo.lua
Normal 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,
|
||||||
|
}
|
6
lua/plugins/telescope-heading.lua
Normal file
6
lua/plugins/telescope-heading.lua
Normal 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
14
lua/plugins/which-key.lua
Normal 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)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user