Skip to content

Commit

Permalink
chore(nvim): remove ufo
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Nov 17, 2023
1 parent 28fe5d8 commit cd21aca
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cd21aca

Please sign in to comment.