Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening new file sometimes override window options. #67

Closed
kyazdani42 opened this issue Aug 1, 2020 · 2 comments · Fixed by #75
Closed

Opening new file sometimes override window options. #67

kyazdani42 opened this issue Aug 1, 2020 · 2 comments · Fixed by #75

Comments

@kyazdani42
Copy link
Member

I found one bug with it. Looks like it overrides some things globally, for example set number. Here are steps to reproduce.

  • Make sure you have set number in your init.vim
  • Open up neovim
  • do :LuaTreeOpen
  • close the other empty window that's on the right, this leaves only nvim-tree
  • Find some file, open it
  • do :LuaTreeOpen, find some other file and open it in vertical split
  • The new split window doesn't have numbers, but it should

Originally posted by @kristijanhusak in #57 (comment)

@kyazdani42
Copy link
Member Author

@kristijanhusak i wonder if this is a bug upstream. I've tried to open a new window in many different ways, but neovim always keeps opening the window with the tree window options, although there are supposed to be set locally.
I really don't know how to address that issue, this is not documented enough, i will need to dig into neovim's codebase to find this and it might be painful and take some time.
If you, by any mean, know how to address that, please redirect me to the proper documentation ^^'

@kristijanhusak
Copy link
Contributor

@kyazdani42 Maybe it's bug in nvim_win_set_option. Try using setwinvar function and see how it works out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants