chore(config): workaround to update fold
Thanks: - https://github.com/nvim-treesitter/nvim-treesitter/issues/1337 - https://www.jmaguire.tech/posts/treesitter_folding/main
parent
b8ffa7bf18
commit
2bf6b6e3b4
|
@ -408,6 +408,16 @@ require("lazy").setup({
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Workaround to update fold
|
||||||
|
-- https://github.com/nvim-treesitter/nvim-treesitter/issues/1337
|
||||||
|
-- https://www.jmaguire.tech/posts/treesitter_folding/
|
||||||
|
local augroup = vim.api.nvim_create_augroup("UserTreesitterConfig", {})
|
||||||
|
vim.api.nvim_create_autocmd("BufEnter", {
|
||||||
|
group = augroup,
|
||||||
|
pattern = "*",
|
||||||
|
command = "normal zR",
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue