fix: work around performance issue with treesitter, folds, and large directories
This commit is contained in:
parent
99ce32f4a2
commit
da93d55e32
1 changed files with 4 additions and 0 deletions
|
|
@ -185,6 +185,10 @@ end
|
|||
|
||||
M.set_win_options = function()
|
||||
local winid = vim.api.nvim_get_current_win()
|
||||
|
||||
-- work around https://github.com/neovim/neovim/pull/27422
|
||||
vim.api.nvim_set_option_value("foldmethod", "manual", { scope = "local", win = winid })
|
||||
|
||||
for k, v in pairs(config.win_options) do
|
||||
vim.api.nvim_set_option_value(k, v, { scope = "local", win = winid })
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue