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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue