Skip to content

Commit

Permalink
fix: work around performance issue with treesitter, folds, and large …
Browse files Browse the repository at this point in the history
…directories
  • Loading branch information
stevearc committed Nov 24, 2024
1 parent 99ce32f commit da93d55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/oil/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da93d55

Please sign in to comment.