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

Is there a way to disable syntax highlighting completely? #89

Closed
joshua7v opened this issue Nov 18, 2022 · 2 comments
Closed

Is there a way to disable syntax highlighting completely? #89

joshua7v opened this issue Nov 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@joshua7v
Copy link

Feature description

Hi, the question might be a bit unusual, sorry about that.
but I wonder if I can disable the syntax highlighting completely within preview
I use syntax manual daily and don't have treesitter installed
I aslo cannot just do syntax off, because I still need something highlighted sometimes (like highlight filename in quickfix)

I tried to give setlocal syntax=off to floating windows, but with no luck to make it work.

" my setting
syntax manual
autocmd FileType dirvish,qf setlocal syntax=on

" what I tried but not work
autocmd BufWinEnter,WinNew * if nvim_win_get_config(0)['relative'] != '' | setlocal syntax=off | endif

Describe the solution you'd like

Maybe provide some suggestions? that would be very helpful.

Additional context

No response

@joshua7v joshua7v added the enhancement New feature or request label Nov 18, 2022
@kevinhwang91
Copy link
Owner

You are crazy!

@joshua7v
Copy link
Author

@kevinhwang91 LOL I know its a bit wwweird, but thanks, works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants