refactor(nvim): simplify fold config and remove statuscol

Switch to manual folding, remove treesitter foldexpr and statuscol.nvim dependency, simplify snacks statuscolumn config.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-03-04 21:35:08 +08:00
parent 4fa2fd1fc1
commit f9808c01a0
3 changed files with 5 additions and 29 deletions

View File

@@ -272,20 +272,6 @@ return {
"kevinhwang91/nvim-ufo",
dependencies = {
"kevinhwang91/promise-async",
{
"luukvbaal/statuscol.nvim",
config = function()
local builtin = require("statuscol.builtin")
require("statuscol").setup({
relculright = true,
segments = {
{ text = { builtin.foldfunc }, click = "v:lua.ScFa" },
{ text = { "%s" }, click = "v:lua.ScSa" },
{ text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
},
})
end,
},
},
event = "BufReadPost",
opts = {
@@ -293,11 +279,7 @@ return {
return { "treesitter", "indent" }
end,
open_fold_hl_timeout = 150,
close_fold_kinds_for_ft = {
default = { "imports", "comment" },
json = { "array" },
yaml = { "sequence" },
},
close_fold_kinds_for_ft = {},
preview = {
win_config = {
border = { "", "", "", "", "", "", "", "" },