comment out ufo
This commit is contained in:
+42
-42
@@ -45,48 +45,48 @@ return {
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"kevinhwang91/nvim-ufo",
|
||||
dependencies = { "kevinhwang91/promise-async" },
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.o.foldcolumn = "1" -- '0' is not bad
|
||||
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
||||
vim.o.foldlevelstart = 99
|
||||
vim.o.foldenable = true
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.foldingRange = {
|
||||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true,
|
||||
}
|
||||
local language_servers = vim.lsp.get_clients() -- or list servers manually like {'gopls', 'clangd'}
|
||||
for _, ls in ipairs(language_servers) do
|
||||
require("lspconfig")[ls].setup {
|
||||
capabilities = capabilities,
|
||||
-- you can add other fields for setting up lsp server in this table
|
||||
}
|
||||
end
|
||||
require("ufo").setup()
|
||||
end,
|
||||
|
||||
keys = {
|
||||
{
|
||||
"zR",
|
||||
function()
|
||||
require("ufo").openAllFolds()
|
||||
end,
|
||||
desc = "Open all folds",
|
||||
},
|
||||
{
|
||||
"zM",
|
||||
function()
|
||||
require("ufo").closeAllFolds()
|
||||
end,
|
||||
desc = "Close all folds",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "kevinhwang91/nvim-ufo",
|
||||
-- dependencies = { "kevinhwang91/promise-async" },
|
||||
-- lazy = false,
|
||||
-- config = function()
|
||||
-- vim.o.foldcolumn = "1" -- '0' is not bad
|
||||
-- vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
||||
-- vim.o.foldlevelstart = 99
|
||||
-- vim.o.foldenable = true
|
||||
--
|
||||
-- local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
-- capabilities.textDocument.foldingRange = {
|
||||
-- dynamicRegistration = false,
|
||||
-- lineFoldingOnly = true,
|
||||
-- }
|
||||
-- local language_servers = vim.lsp.get_clients() -- or list servers manually like {'gopls', 'clangd'}
|
||||
-- for _, ls in ipairs(language_servers) do
|
||||
-- require("lspconfig")[ls].setup {
|
||||
-- capabilities = capabilities,
|
||||
-- -- you can add other fields for setting up lsp server in this table
|
||||
-- }
|
||||
-- end
|
||||
-- require("ufo").setup()
|
||||
-- end,
|
||||
--
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "zR",
|
||||
-- function()
|
||||
-- require("ufo").openAllFolds()
|
||||
-- end,
|
||||
-- desc = "Open all folds",
|
||||
-- },
|
||||
-- {
|
||||
-- "zM",
|
||||
-- function()
|
||||
-- require("ufo").closeAllFolds()
|
||||
-- end,
|
||||
-- desc = "Close all folds",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
|
||||
-- {
|
||||
-- "tzachar/local-highlight.nvim",
|
||||
|
||||
Reference in New Issue
Block a user