Comments (6)
Awesome thanks for the super quick fix 🚀
I'll look into using the LuaTreeNormal
hl group forgot that was an option
from nvim-tree.lua.
this is strange indeed, I'll try to fix this today.
from nvim-tree.lua.
well i cannot find why it behaves that way. the filetype is set on buffer creation before being set to the window.
Could you provide me with the commands you are trying to run so i can test that issue deeper please ?
from nvim-tree.lua.
@kyazdani42 I've just tried reproducing it locally using
call plug#begin(stdpath('data') . '/plugged')
Plug 'kyazdani42/nvim-web-devicons' " for file icons
Plug 'kyazdani42/nvim-tree.lua'
call plug#end()
augroup Setup
autocmd!
autocmd FileType LuaTree setlocal statusline=This\ is\ Lua\ Tree
autocmd FileType LuaTree set winhighlight=Normal:ErrorMsg
augroup END
If you run either of those commands inside the lua tree buffer on their own i.e.
:set winhighlight=Normal:ErrorMsg
that works but if you try and trigger this via an autocommand it doesn't work. Is that buffer ignoring autocommands somehow?
from nvim-tree.lua.
for winhighlight, it happens because i set a winhighlight for Normal during window creation so it would override yours. You have documentation for winhighlights i believe (or at least i wrote which one i declare)
You can still add winhighlights that i don't declare with winhighliht+
=
you might want to change the LuaTreeNormal
hl group for this one.
Im going to investigate for your statusline thing but i tried other things and it just works.
from nvim-tree.lua.
i moved some buffer local after window initialization and i set the filetype after buffer is set to the window, so everything should work as expected now.
from nvim-tree.lua.
Related Issues (20)
- Pasting shortcut stopped working? HOT 2
- Statuscolumn is not unset for nvim-tree's buffer HOT 3
- Selecting a window with the "Pick window" prompt causes a "Press enter or type command to continue" HOT 1
- Navigate tree using fuzzy search HOT 7
- Norton commander-like mode HOT 2
- Why icons are cut off and how to fix it? HOT 2
- Discrete/Shared Tree Windows HOT 2
- Toggling folder expansion in one tab's tree affects the tree in another tab HOT 1
- 2 questions regarding configration
- Previous window is not selected unless :NvimTreeFocus is used HOT 8
- NVIM v0.9.0-dev doesn't have "WinResized" event HOT 2
- Tree only displays 2 subdirectories when 100+ are available. HOT 2
- Option to use file/directory names instead of absolute paths for notifications HOT 2
- Please add tags to repo HOT 6
- wrong behavior in creating new files on SMB shares from windows HOT 1
- Skip Rename Prompt On Copy, Paste To Same Folder
- Invalis UTP characters as glyphs... HOT 1
- Moving files HOT 7
- Sorting with `name.<EXT PREFIX>.ext` is based on `<EXT PREFIX>` instead of `.ext` HOT 11
- Toggle floating tree HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-tree.lua.