Closed ThaiDuy12345 closed 2 months ago
I don't use neotree, is the plugin changing its buffer of filetype when you change its source selection? If you could validate that with echo &filetype
and echo bufnr()
before & after that would be nice.
I don't use neotree, is the plugin changing its buffer of filetype when you change its source selection? If you could validate that with
echo &filetype
andecho bufnr()
before & after that would be nice.
It still print "neo-tree" file type
I wasn't able to reproduce, perhaps it has been fixed?
I made the following minimal rc file:
--[[ minimal.lua ]]
local lazy = vim.fn.stdpath('data') .. '/lazy/'
vim.opt.rtp:prepend {
lazy .. 'barbar.nvim',
lazy .. 'neo-tree.nvim',
lazy .. 'nui.nvim',
lazy .. 'nvim-web-devicons',
lazy .. 'plenary.nvim',
}
vim.g.barbar_auto_setup = false
require('barbar').setup {
sidebar_filetypes = {
['neo-tree'] = {
event = 'BufWipeout',
},
}
}
require('neo-tree').setup()
Then I ran the following:
nvim --clean -u minimal.lua +Neotree +'lua vim.defer_fn(function() vim.api.nvim_command "Neotree git_status" end, 150)'
My neovim version:
NVIM v0.10.0-dev-2f371ad
Build type: Release
LuaJIT 2.1.1693350652
I wasn't able to reproduce, perhaps it has been fixed?
I made the following minimal rc file:
--[[ minimal.lua ]] local lazy = vim.fn.stdpath('data') .. '/lazy/' vim.opt.rtp:prepend { lazy .. 'barbar.nvim', lazy .. 'neo-tree.nvim', lazy .. 'nui.nvim', lazy .. 'nvim-web-devicons', lazy .. 'plenary.nvim', } vim.g.barbar_auto_setup = false require('barbar').setup { sidebar_filetypes = { ['neo-tree'] = { event = 'BufWipeout', }, } } require('neo-tree').setup()
Then I ran the following:
nvim --clean -u minimal.lua +Neotree +'lua vim.defer_fn(function() vim.api.nvim_command "Neotree git_status" end, 150)'
My neovim version:
NVIM v0.10.0-dev-2f371ad Build type: Release LuaJIT 2.1.1693350652
hah, somehow it got fixed? I also couldn't replicate. Maybe it was on the neo-tree issue itself
Description
Changing Neotree source selection to other like git status or buffers make barbar set off_set to (0)
To Reproduce
My config options
Steps to reproduce the behavior:
Screenshots
Before:
After changing to git_status selection, the barbar offset now set to (0):
![image](https://github.com/romgrk/barbar.nvim/assets/103923561/c968508c-ce9e-4cfb-9d6e-947035b1f599)
Informations Neovim version: 0.9.5