3 ms·
> Random thought: Since there are N editors and M languages, that's N x M plugins. Surely there's a better way to reduce the effort involved. Yeah, it’s called
by eddythompson80 3y ago
> Random thought: Since there are N editors and M languages, that's N x M plugins. Surely there's a better way to reduce the effort involved.
Yeah, it’s called LSP. The core of most plugins is just an lsp that’s shared between vim, neovim, emacs, vscode, sublime, etc. all the editor needs is to support generic lsp, or have a generic lsp plugin like vim/emacs.
For example if you look at neovim, you just load the actual lsp and wire it up to the editor in lua. That’s more or less the majority of the “extension code” for something like sublime or vscode (plus some other niceties)
- 1letterunixname 3y agoYou're making a dishonest leap here. Language server protocol doesn't create a universal plugin.
- eddythompson80 3y agoWhat do you mean by a universal plugin?
- 1letterunixname 3y agoLSP doesn't automatically add all possible language support features to all editors using a common API without any extra effort. It gives things like code completion, syntax, and refactoring help, but these are only some of the pieces of language support that each editor must provide rather than a complete solution.