-
-
Notifications
You must be signed in to change notification settings - Fork 625
1221 handle deprecated vert split #1225
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
Conversation
@@ -65,6 +65,7 @@ local function get_links() | |||
EndOfBuffer = "EndOfBuffer", | |||
CursorLine = "CursorLine", | |||
VertSplit = "VertSplit", | |||
WinSeparator = "NvimTreeVertSplit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. WinSeparator
defaults to VertSplit
in 0.7.0.
@siduck please test. |
NvimTreeCursorLine | ||
NvimTreeVertSplit (deprecated, use NvimTreeWinSeparator) | ||
NvimTreeWinSeparator | ||
NvimTreeCursorColumn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why there were no NvimTree
prefixes. We can revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was because i've specified the original groups, but it doesn't matter too much, i actually think it's clearer this way
works as expected |
Thank you. |
Could you try and replicate that without nvim-tree? |
All works fine for me except for the horizontal splt's touching nvimtree as mentioned by the others. Sidenote: any idea how to get some more padding on the number row when using number and relative number? There's almost no space between the current line number and nvim-tree for example. |
numberwidth option ig |
That is a possible nvim-tree problem. I cannot replicate with the minimal config and @siduck @adastx : please produce a minimal configuration that demonstrates this issue so that we may replicate: raise a new bug report and put your minimal configuration in there. |
Steps to reproduce @alex-courtis git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim init.lua vim.opt.laststatus= 3
vim.opt.termguicolors = true
vim.cmd "hi Normal guibg=#000000"
vim.cmd "hi NvimTreeNormal guibg=#ffffff guifg=#000000"
vim.cmd "hi WinSeparator guibg='NONE'"
vim.cmd "hi NvimTreeWinSeparator guifg='#ffffff' guibg='#ffffff'"
require("packer").startup {
{
"wbthomason/packer.nvim",
{
"kyazdani42/nvim-tree.lua",
branch = "1221-handle-deprecated-VertSplit",
},
"kyazdani42/nvim-web-devicons",
},
}
require("nvim-tree").setup {} |
Replicated. This happens on this branch, as well as the previous 86d573d This might be a neovim bug. We should replicate this without nvim-tree. |
Replicated without nvim-tree:
I don't know if this is intended behaviour; @siduck please raise a neovim issue. |
@alex-courtis yes it is, So this is no longer nvimtree related issue Ig, it'd be great to push the changes for now tho! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good enough for now, once we merge the switch to 0.7, we'll remove this :)
- change `NvimTreeVertSplit` to `NvimTreeWinSeparator` since the former is deprecated. nvim-tree/nvim-tree.lua#1225 - set `NvimTreeWinSeparator` to `border` if sidebar style is `transparent` Signed-off-by: Sabu Siyad <hello@ssiyad.com>
- change `NvimTreeVertSplit` to `NvimTreeWinSeparator` since the former is deprecated. nvim-tree/nvim-tree.lua#1225 - set `NvimTreeWinSeparator` to `border` if sidebar style is `transparent` Signed-off-by: Sabu Siyad <hello@ssiyad.com> Signed-off-by: Sabu Siyad <hello@ssiyad.com>
) - change `NvimTreeVertSplit` to `NvimTreeWinSeparator` since the former is deprecated. nvim-tree/nvim-tree.lua#1225 - set `NvimTreeWinSeparator` to `border` if sidebar style is `transparent` Signed-off-by: Sabu Siyad <hello@ssiyad.com> Signed-off-by: Sabu Siyad <hello@ssiyad.com>
closes #1221
WinSeparator
, falls back toVertSplit
NvimTreeWinSeparator
defaults toNvimTreeVertSplit
We could put a warning about this deprecation however I do not think it is worth it.