From d721d876344266cf13f10ec35a83ced05617f2a7 Mon Sep 17 00:00:00 2001 From: Alessandro Zini Date: Wed, 12 Aug 2026 12:27:50 +0200 Subject: [PATCH] ui: remove experimental vim._core.ui2 configuration 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. --- lua/ui.lua | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lua/ui.lua b/lua/ui.lua index 0465a844..27d525df 100644 --- a/lua/ui.lua +++ b/lua/ui.lua @@ -145,28 +145,4 @@ end M.rand_colorscheme() --- enable the experiment UI -require("vim._core.ui2").enable { - enable = true, - msg = { -- Options related to the message module. - targets = { - [""] = "cmd", - empty = "msg", - }, - cmd = { -- Options related to messages in the cmdline window. - height = 0.2, -- Maximum height while expanded for messages beyond 'cmdheight'. - }, - dialog = { -- Options related to dialog window. - height = 0.2, -- Maximum height. - }, - msg = { -- Options related to msg window. - height = 0.2, -- Maximum height. - timeout = 1000, -- Time a message is visible in the message window. - }, - pager = { -- Options related to message window. - height = 0.3, -- Maximum height. - }, - }, -} - return M