Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So before your run off and install v8 just to get autocomplete in Vim, let me make a few suggestions based on my experience:

1. Check out the built in completion first. Vim actually has very powerful autocomplete that can look in the current file, complete file paths, tags, and more. It can look at includes, requires, etc. depending on your language's built in support. For C like languages this is usually excellent. With ctags and this built in completion, you can get 90% of what an LSP will give you.

2. Chances are you've already installed ALE, it's a pretty standard plugin. ALE has built in LSP support, and it's entirely written in vimscript. All you have to do is create an ftplugin for your LSP language and add the LSP into the configured linters list. This is in the primary docs.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: