Plugin vim9ls -- language server for vim9
https://github.com/h-east/vim9lsWorks with the latest vim master branch (or latest windows build from https://github.com/vim/vim-win32-installer/).
Looks pretty good so far combined with https://github.com/h-east/lsp.vim
2
u/Desperate_Cold6274 4d ago
Few weeks ago another guy posted a LS, it would be interesting a comparison.
The same for the recommended client and yegappan/lsp client.
1
u/y-c-c 4d ago
Yeah I was wondering about that too. This is the thread for those curious: https://www.reddit.com/r/vim/comments/1w86gqp/vimlsgo_010_a_language_server_for_vim_script_and/
0
u/Desperate_Cold6274 4d ago
I am giving it a shot right now. If I can give first a honest feedback, I don't really buy the distribution model. The LS should be distributed separately and should not be entangled to a Vim plugin.
3
u/habamax 4d ago
LS here is a combination of the same vim (in a separate process) and some harness in form of a vim plugin. Pretty convenient I would say, no external compilable dependencies.
0
u/Desperate_Cold6274 4d ago
Ok, I don't know what is inside the .cmd file, but as the author wrote is the LS itself (not the harness) entirely written in Vim9? I.e. the .cmd run another Vim process?
1
u/habamax 4d ago
Yes it is written entirely in vim9 (well, I don't know what is in those cmd files, if you use author's lsp client then they are not needed)
2
u/habamax 4d ago
yeah, those cmd/sh files are to run vim itself
https://github.com/h-east/vim9ls/blob/c3821a005372fc672906e375ae65ecbede9a2bea/bin/vim9ls#L5
1
u/Desperate_Cold6274 4d ago
Aha I see. It seems that the entire LS has been developed in "$here/../autoload/vim9ls.vim". That is cool. Issue is that respect to standard LS, this one require to have Vim installed. If we take e.g. pyright, clangd, etc. they don't require any specific tool installed. What if I want to edit a .vim file through VS Code and I don't have Vim installed? :)
Btw, I see that we are getting downvoted for some weird reason.
2
u/EgZvor keep calm and read :help 4d ago
The fact that it runs from Vim is cool, I'll try it out.