From cd21aca649d0a7312cac55e32df0815dc0f400a0 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 17 Nov 2023 13:56:04 +0700 Subject: [PATCH] chore(nvim): remove ufo --- data/nvim/init.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 17f811a..edf1736 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -302,28 +302,6 @@ require("lazy").setup({ end, }, - -- https://github.com/kevinhwang91/nvim-ufo - { - "kevinhwang91/nvim-ufo", - dependencies = { - "kevinhwang91/promise-async", - }, - init = function() - vim.o.foldcolumn = "1" - vim.o.foldlevel = 99 - vim.o.foldlevelstart = 99 - vim.o.foldenable = true - end, - config = function() - local ufo = require("ufo") - - vim.keymap.set("n", "zR", ufo.openAllFolds) - vim.keymap.set("n", "zM", ufo.closeAllFolds) - - ufo.setup() - end, - }, - -- https://github.com/echasnovski/mini.nvim { "echasnovski/mini.nvim", @@ -398,13 +376,6 @@ require("lazy").setup({ config = function() local lspconfig = require("lspconfig") - -- Support nvim-ufo - local capabilities = vim.lsp.protocol.make_client_capabilities() - capabilities.textDocument.foldingRange = { - dynamicRegistration = false, - lineFoldingOnly = true, - } - -- Go -- https://github.com/golang/tools/blob/master/gopls/doc/vim.md -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md