- Notifications
You must be signed in to change notification settings - Fork 273
Do not send requests/notifications for buffers without a configured server command #1121
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
Do not send requests/notifications for buffers without a configured server command #1121
Conversation
9b2b9d7 to 1ed2b82 Compare df6f039 to 3dda12f Compare 3dda12f to b2b7c97 Compare | On |
| Yeah I think we should be able to stop some of those calls as well. But that's definitely something we have to do in airline. I'll see about opening a PR there to try and fix that as well 👍 Thanks for testing it out |
| @YaLTeR Just opened vim-airline/vim-airline#2282 to try to address that last bit. It won't fix it all the way, as I don't think there's a (clean) way for airline to know whether it should load the extension for that specific filetype, but that fix should cut a bunch of that time out of your profile. One thing that could work better is to just check if there is a configured server in the |
Unfortunately it's impossible to configure extensions at any point past initial plugin load: vim-airline/vim-airline#2086 (comment) |
| Ah well, that settles that then, I think our only bet is to exit early in that |
This PR stops LCN from trying to communicate with a server for languages or from handling the events we track (such as
CursorMovedfor languages that don't have a configured server command.I was a little dubious about setting
autocmds inside a function like that, but it seems to work.Fixes #984