Noice supports syntax highlighting for the command line (which is nice!), but apparently does so by setting the filetype -- which triggers all manner of autocommands, such as attaching a language server.
Instead, Noice should just set vim.bo.syntax directly, or -- since Noice only supports treesitter highlighting, IIUC -- use vim.treesitter.start(bufnr, language).
(Compare how telescope does this, which has the same issue with its previews.)
Noice supports syntax highlighting for the command line (which is nice!), but apparently does so by setting the filetype -- which triggers all manner of autocommands, such as attaching a language server.
Instead, Noice should just set
vim.bo.syntaxdirectly, or -- since Noice only supports treesitter highlighting, IIUC -- usevim.treesitter.start(bufnr, language).(Compare how telescope does this, which has the same issue with its previews.)