romgrk / barbar.nvim

The neovim tabline plugin.
2.16k stars 81 forks source link

...o/.local/share/nvim/lazy/barbar.nvim/lua/barbar/bbye.lua:60: Vim:Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:148: Vim:Error executing lua callback: Vim:E315: ml_get: invalid lnum: 1 #514

Closed Zeddnyx closed 1 year ago

Zeddnyx commented 1 year ago

I got an error like this every time i close buffer Idk where to fix it, I never get this error before it shows after i change some highlight, what should i do?

IMG_20230624_173252_875

fjchen7 commented 1 year ago

Same issue here.

Iron-E commented 1 year ago

It's reporting an error from nvim-ts-rainbow. See #510, the Buffer* commands seem to disrupt builtin treesitter support.

Seeing as we don't make any calls to vim.treesitter ourselves, I'm inclined to think it's not a barbar issue, but I could be wrong.

I would report it to that plugin maintainer to see what their thoughts are on the matter.

Iron-E commented 1 year ago

Also, just checking, what command are you using to delete the buffer?

Zeddnyx commented 1 year ago

I already solved the problem, i change the keybind for close buffer

nmap("", "bd", { desc = "Buffer: delete buffer" }) nmap("", "%bd|e#", { desc = "Buffer: delete all buffer except this one" })

Zeddnyx commented 1 year ago

Just change keybind for closing buffer