Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set filetype for command line #104

Closed
clason opened this issue Oct 23, 2022 · 1 comment · Fixed by #639
Closed

Don't set filetype for command line #104

clason opened this issue Oct 23, 2022 · 1 comment · Fixed by #639
Labels
bug Something isn't working

Comments

@clason
Copy link

clason commented Oct 23, 2022

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

@clason clason added the bug Something isn't working label Oct 23, 2022
@folke folke closed this as completed in df02aa2 Oct 23, 2022
@folke
Copy link
Owner

folke commented Oct 23, 2022

Good point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants