Install nvim-ufo
This commit is contained in:
parent
77634d7ab9
commit
fde53fcdd0
5 changed files with 28 additions and 10 deletions
|
|
@ -12,9 +12,14 @@ opt.colorcolumn = "80"
|
|||
opt.clipboard:append({ "unnamed", "unnamedplus" })
|
||||
opt.expandtab = true
|
||||
opt.exrc = true
|
||||
opt.foldmethod = "syntax"
|
||||
opt.foldcolumn = "1"
|
||||
opt.foldlevelstart = 20
|
||||
opt.foldlevel = 99
|
||||
opt.foldlevelstart = 99
|
||||
opt.foldenable = true
|
||||
opt.fillchars:append({
|
||||
foldopen = "",
|
||||
foldclose = "",
|
||||
})
|
||||
opt.ignorecase = true
|
||||
opt.incsearch = true
|
||||
opt.inccommand = "split"
|
||||
|
|
|
|||
|
|
@ -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