Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

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

Already on GitHub? # to your account

Option to only trigger LSP on write (or other "events") #2176

Closed
bczsalba opened this issue Apr 19, 2022 · 2 comments
Closed

Option to only trigger LSP on write (or other "events") #2176

bczsalba opened this issue Apr 19, 2022 · 2 comments
Labels
A-language-server Area: Language server client C-enhancement Category: Improvements

Comments

@bczsalba
Copy link

bczsalba commented Apr 19, 2022

I spent some time on trying to figure out a way to only get LSP feedback after the file was written to, and couldn't come up with any results, so if I just overlooked something please let me know.

I come from a pretty vanilla vim config, so getting constantly reminded by issues in my code (which I'm on my way to fix) has been very distracting.

Maybe some option like lsp-trigger = ["write", "insert"] could fix this? Not sure how easy that would be to implement, since I haven't really looked at the code much yet.

@bczsalba bczsalba added the C-enhancement Category: Improvements label Apr 19, 2022
@kirawi kirawi added the A-language-server Area: Language server client label Apr 22, 2022
@yowayb
Copy link

yowayb commented Dec 22, 2023

Would this depend on #8021 ?

@pascalkuthe
Copy link
Member

In theory that could help with implementing this feature but in practice this is just not going to work. This was discussed on Matrix quite a while back. The LSP spec is not designed for something like this and it would require a lot of hacks to make work (and disable all other lsp features like autocompletions in the process). I don't think this is something that should be added to core

@helix-editor helix-editor locked and limited conversation to collaborators Dec 22, 2023
@pascalkuthe pascalkuthe converted this issue into discussion #9137 Dec 22, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-language-server Area: Language server client C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants