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 request: Option to underline without end_col #714

Open
jclem opened this issue Jan 3, 2025 · 1 comment
Open

Feature request: Option to underline without end_col #714

jclem opened this issue Jan 3, 2025 · 1 comment

Comments

@jclem
Copy link

jclem commented Jan 3, 2025

Some linters do not provide an end_col, so they don't get underlined even if vim.diagnostics is configured to do so.

In VSCode, the editor essentially sets a fake end column to the end of the line on which the error occurs, so that there's still an underline visible. It would be useful if nvim-lint offered a similar option via configuration. This makes it much easier to identify where the issue begins.

screenshot-Code - Insiders-2025-01-03T05-10-06PM

@mfussenegger
Copy link
Owner

I think this might be something to add in nvim core - an option that causes nvim to underline to the eol if end_col is absent in the vim.Diagnostic structure.

Then it could likely get configured via vim.diagnostic.config { underline = {...} }

Could you open a feature request in the neovim repo?

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

No branches or pull requests

2 participants