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

[fix]: When the window was first created, filetype was empty. #53

Closed jinzhongjia closed 3 months ago

jinzhongjia commented 6 months ago

This pr only adjusts the execution order of the code. First set the filetype of the buffer, and slightly delay the execution of vertical resize

There are some plugins that detect filtype when the window is created, for example anuvyklack/windows.nvim

This fixes some unexpected behavior that might occur

jinzhongjia commented 3 months ago

I reopened this PR. The previous closure was because I thought this fork was no longer maintained.

hedyhli commented 3 months ago

That's certainly not the case at least for now. Though life elsewhere had been a little busy, I try my best to keep this project going as the sole maintainer and not have it end up similar to what's happened to its predecessor.

Thanks for your PR! I'll get around to reviewing it soon.