Comments (7)
ok well i found the bug. When sourcing, lua tree reevaluates even if it is closed, thus the Tree.bufnr is nil, which causes undefined behaviour. I'll push a fix, tell me if it fixes it on your side
from nvim-tree.lua.
Just tested it and it looks like it's fixed 👍
from nvim-tree.lua.
hey ! thanks :)
not sure i understand this issue, is the tree overwriting the highlight in your files ? are you sure it isn't related to something else ? I did not encounter something like that so i don't really know how to reproduce this ^^
from nvim-tree.lua.
Yeah it's a pretty confusing one I'm not 100% sure what happening but the way I can reproduce it locally is it seems to be happening when I
1.) Open nvim tree
2.) Close nvim tree
3.) source my neovim config
I'll try with a minimal init.vim to make sure it isn't my config causing it, except the problem goes away when I don't have nvim tree loaded
from nvim-tree.lua.
Okay so I managed to reproduce this with a minimal vimrc
call plug#begin(stdpath('data') . '/plugged')
Plug 'kyazdani42/nvim-web-devicons' " for file icons
Plug 'kyazdani42/nvim-tree.lua'
Plug 'rakr/vim-one'
call plug#end()
colorscheme one
nvim -u minimal.vim
LuaTreeOpen
LuaTreeClose
source /path/to/minimal.vim
And the highlights are broken. Note, that if you try sourcing the minimal init.vim before LuaTreeOpen
the highlights are fine
from nvim-tree.lua.
well that's a strange one. I'm gonna investigate.
from nvim-tree.lua.
I'm closing this if everything is ok for you. Ask me to reopen if the issue still exists !
from nvim-tree.lua.
Related Issues (20)
- 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
- Find File: Extraneous git status HOT 6
- `nvim -num /nvt-min.lua` with `hijack_netrw = true` failed to edit a directory immediately. HOT 4
- background transparency of non-tree windows is disabled when tree open HOT 2
- Git Status Shown On Grouped Directories When Not `git.show_on_open_dirs` HOT 5
- Git Status Not Shown For Closed Folders In Submodule When `renderer.group_empty` HOT 1
- After creating a directory, two folders are displayed. HOT 4
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.