Install nvim-ufo
This commit is contained in:
parent
77634d7ab9
commit
fde53fcdd0
5 changed files with 28 additions and 10 deletions
|
|
@ -55,10 +55,15 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
local lspconfig = require('lspconfig')
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.foldingRange = {
|
||||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true
|
||||
}
|
||||
for _, v in ipairs(vim.api.nvim_get_runtime_file('lua/lsp/*', true)) do
|
||||
local name = vim.fn.fnamemodify(v, ':t:r')
|
||||
local cfg = require("lsp/" .. name)
|
||||
lspconfig[name].setup(cfg)
|
||||
lspconfig[name].setup(vim.tbl_deep_extend("force", cfg, { capabilities }))
|
||||
end
|
||||
end
|
||||
},
|
||||
|
|
|
|||
6
lua/plugins/nvim-ufo.lua
Normal file
6
lua/plugins/nvim-ufo.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
'kevinhwang91/nvim-ufo',
|
||||
dependencies = { 'kevinhwang91/promise-async' },
|
||||
|
||||
opts = {}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
return {
|
||||
"vuki656/package-info.nvim",
|
||||
requires = "MunifTanjim/nui.nvim",
|
||||
dependencies = { "MunifTanjim/nui.nvim" },
|
||||
opts = {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue