Skip to content

Disable linting autocmd for readonly buffers#1202

Merged
feoh merged 2 commits into
nvim-lua:masterfrom
ccjmne:disable-readonly-linting
Oct 30, 2024
Merged

Disable linting autocmd for readonly buffers#1202
feoh merged 2 commits into
nvim-lua:masterfrom
ccjmne:disable-readonly-linting

Conversation

@ccjmne

@ccjmne ccjmne commented Oct 20, 2024

Copy link
Copy Markdown
Contributor

Disable linting autocmd for readonly buffers.

This should avoid linting in buffers outside of the user's control, having in mind especially the handy LSP pop-ups that describe your hovered symbol using markdown.

I added @rgruyters as a co-author, because he's the one who engaged the discussion on this topic in his pull request.

This should avoid linting in buffers outside of the user's control,
having in mind especially the handy LSP pop-ups that describe your
hovered symbol using markdown.

Co-authored-by: Robin Gruyters <2082795+rgruyters@users.noreply.github.com>
@cmdrrobin

cmdrrobin commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

I have tested it and it works perfectly.Although I would suggest to add some comments why this is added.

Co-authored-by: Robin Gruyters <2082795+rgruyters@users.noreply.github.com>
@ccjmne

ccjmne commented Oct 21, 2024

Copy link
Copy Markdown
Contributor Author

Excellent suggestion! Done.

@cmdrrobin cmdrrobin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM

@feoh feoh merged commit 5ed1bc3 into nvim-lua:master Oct 30, 2024
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

Successfully merging this pull request may close these issues.

3 participants