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

FEATURE: Option to Disable LSP Diagnostics for preview windows #1671

Open
1 task done
kevintraver opened this issue Jan 27, 2025 · 1 comment · May be fixed by #1672
Open
1 task done

FEATURE: Option to Disable LSP Diagnostics for preview windows #1671

kevintraver opened this issue Jan 27, 2025 · 1 comment · May be fixed by #1672
Labels
enhancement New feature or request

Comments

@kevintraver
Copy link

Did you check the docs?

  • I have read all the docs.

Is your feature request related to a problem? Please describe.

When navigating through files quickly with preview mode, the LSP diagnostics loads in every preview window, which can seem unnecessary.

Describe the solution you'd like.

Option to disable the LSP diagnostics for preview windows.

Describe alternatives you've considered.

No response

Additional Context

Could possibly be done the same way oil.nvim disables LSP in preview windows:

stevearc/oil.nvim#467

@kevintraver kevintraver added the enhancement New feature or request label Jan 27, 2025
@pynappo
Copy link
Collaborator

pynappo commented Jan 27, 2025

i'm a bit wary of adding more configuration options, i think the approach of reading the file lines is probably the most reasonable default for most people. thanks for the link to oil's approach.

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

Successfully merging a pull request may close this issue.

2 participants