Skip to content

Don't set filetype for command line #104

@clason

Description

@clason

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions