Removing eob signs in buffer #1582
Replies: 3 comments
-
Autocommands are not particularly reliable due to inconsistent event ordering. Try using the event API: local Api = require('nvim-tree.api')
local Event = require('nvim-tree.api').events.Event
Api.events.subscribe(Event.TreeOpen, function()
vim.opt_local.fillchars="eob: "
end) |
Beta Was this translation helpful? Give feedback.
-
Seems to work fine, is that event called each time the tree is expanded/opened, is the buffer of the tree killed each time we toggle the tree off or is it just hidden, and the window pane is what gets destroyed ? Another question is can that not be part of the other view properties on the tree config ? Like linenumber etc ? |
Beta Was this translation helpful? Give feedback.
-
The buffer is destroyed whenever the tree is closed or its window is closed.
It's a very niche requirement, and the configuration would become very cluttered if we included every posible option. The event exists for such niche use cases. |
Beta Was this translation helpful? Give feedback.
-
Description
I would like to be able to clear the eob sign characters in the nvim tree buffer. Using auto command does not seem to work, and i have been facing this issue for quite some time without any progress.
Neovim version
Operating system and version
wsl, ubuntu 20
nvim-tree version
master
Minimal config
Steps to reproduce
Expected behavior
Eob characters should be cleared for the nvim tree buffer
Actual behavior
Eob characters are still visible in the buffer.
Beta Was this translation helpful? Give feedback.
All reactions