Skip to content

ui: remove experimental vim._core.ui2 configuration - #481

Open
aleeraser wants to merge 1 commit into
jdhao:mainfrom
aleeraser:fix/ui-experimental
Open

ui: remove experimental vim._core.ui2 configuration#481
aleeraser wants to merge 1 commit into
jdhao:mainfrom
aleeraser:fix/ui-experimental

Conversation

@aleeraser

Copy link
Copy Markdown
Contributor

In Neovim 0.12+, vim._core.ui2's cmdline_show event handler attempts to syntax highlight command-line inputs using Tree-sitter. Due to changes in the vim grammar, it triggers a Tree-sitter query error ("Invalid node type 'tab'") and a Lua traceback whenever entering command-line mode (i.e. :).

Removing vim._core.ui2 restores Neovim's standard built-in command-line interface and prevents these crashes.

ERR 2026-08-12T12:21:37.085 nvim.1378658.0 ui_attach_error:783: Error in "cmdline_show" UI event handler (ns=nvim.ui2):
Lua: ...x-x86_64/share/nvim/runtime/lua/vim/treesitter/query.lua:374: Query error at 113:4. Invalid node type "tab":
    "tab"
    ^
stack traceback:
    [C]: in function '_ts_parse_query'
    ...-x86_64/share/nvim/runtime/lua/vim/_core/ui2/cmdline.lua:70: in function 'fn'
    ...4/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:717: in function 'for_each_tree'
    ...-x86_64/share/nvim/runtime/lua/vim/_core/ui2/cmdline.lua:69: in function 'set_text'
    ...-x86_64/share/nvim/runtime/lua/vim/_core/ui2/cmdline.lua:105: in function 'handler'

In Neovim 0.12+, vim._core.ui2's cmdline_show event handler attempts to
syntax highlight command-line inputs using Tree-sitter. Due to changes
in the vim grammar, it triggers a Tree-sitter query error ("Invalid node
type 'tab'") and a Lua traceback whenever entering command-line mode
(i.e. :).

Removing vim._core.ui2 restores Neovim's standard built-in command-line
interface and prevents these crashes.
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.

1 participant