diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index 5a4cbe3..36e6aa9 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -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",