Skip to content

fix(tabufline): nil check when tabufline is disabled - #514

Closed
CoreyCole wants to merge 1 commit into
NvChad:v3.0from
CoreyCole:patch-1
Closed

fix(tabufline): nil check when tabufline is disabled#514
CoreyCole wants to merge 1 commit into
NvChad:v3.0from
CoreyCole:patch-1

Conversation

@CoreyCole

@CoreyCole CoreyCole commented Sep 19, 2025

Copy link
Copy Markdown

when pressing shift-tab and tab when tabufline is disabled we get errors because there is no vim.t

tabufline = {
  enabled = false,
},

handle vim.t.bufs nil:

E5108: Lua: .../.local/share/nvim/lazy/ui/lua/nvchad/tabufline/init.lua:11: bad argument #1 to 'ipairs' (table expected, got nil)

@siduck

siduck commented Sep 19, 2025

Copy link
Copy Markdown
Member

but those who don't use the tabufline then they should disable the TAB mapping itself

@CoreyCole

Copy link
Copy Markdown
Author

is there a way we can prevent creating the mapping automatically when tabufline is disabled? seems like the mapping is created in a different repo not ui?

siduck added a commit to NvChad/NvChad that referenced this pull request Sep 20, 2025
@siduck

siduck commented Sep 20, 2025

Copy link
Copy Markdown
Member

done

@siduck siduck closed this Sep 20, 2025
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 this pull request may close these issues.

2 participants