m-pilia / vim-ccls

Vim plugin for the ccls language server
MIT License
97 stars 7 forks source link

how to disable on runtime #60

Closed windrg closed 2 years ago

windrg commented 2 years ago

Hi, I appreciate your great work. However I feel uncomfortable when I'm using vimdiff. Whenever I launch vimdiff, it tries to run ccls in the background. And sometimes I feel that it gets sluggish in my big project. Thus I wonder if there is a method how to disable this plugin from working on runtime. I think it would be nice to provide an API eg CclsDisable

m-pilia commented 2 years ago

Hi @windrg, and thanks for the message!

I should clarify that vim-ccls never starts ccls by itself. The server is started and managed by the language client that you are using as backend, and vim-ccls will only send requests to the server through the API of the language client, and only when you explicitly run any CclsX command.

I do not know what language client you are using, but it has to be one from the list on top of the README:

Therefore, in order to fix the issue with ccls running when you do not want to, you should check the documentation and the configuration of your language client.

windrg commented 2 years ago

Thanks for your answer. Then I need to contact vim-lsp. Thanks again.