hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

Native nvim folds causes outline to be folded too #41

Closed Integralist closed 8 months ago

Integralist commented 8 months ago

👋🏻 Is there a way to prevent the outline window from being affected by neovim's fold feature?

I currently have set foldmethod=indent.

Screenshot 2023-12-15 at 15 25 24

NOTE: The following autocommand fixes the same issue found in Telescope...

vim.api.nvim_create_autocmd("FileType", {
    pattern = "TelescopeResults",
    command = "setlocal nofoldenable"
})
Integralist commented 8 months ago

OK fixed by finding the FileType for the Outline window 👍🏻

vim.api.nvim_create_autocmd("FileType", {
    pattern = "Outline",
    command = "setlocal nofoldenable"
})