Open gruvw opened 9 months ago
This is a technical limitation. The highlighting is done via extmarks rather than a syntax file. It might be possible to do the OilDir highlighting via the syntax file; I haven't investigated yet. The main reason it's currently done with extmarks is because the arbitrary combination of columns makes the exact syntax structure of the buffer hard to define.
Did you check the docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.2
Operating system/version
Ubuntu 22.04 LTS
Describe the bug
The highlight group of the directory/file is not followed when modifying the buffer:
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
OilDir
highlight groupExpected Behavior
The modified text content
test
should have the highlight groupOilDir
instead of the default highlighting of oil.Note: if this is intended to be the default behavior, I would advise adding an option to have a new highlight group for "modified buffer content" so that we can customize the color and highlighting of the names we want to change (or at least make it match the default highlight).
Directory structure
root/MyDir
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.