alefragnani / vscode-language-pascal

Pascal language extension for Visual Studio Code
MIT License
216 stars 47 forks source link

[FEATURE] - Language server pascal for neovim #109

Closed Cris-lml007 closed 2 years ago

Cris-lml007 commented 2 years ago

How could it be used, apply this server in neovim or vim?.

alefragnani commented 2 years ago

Hi @Cris-lml007 ,

I don't know about neovim/vim, but this extension is designed to work with VS Code only.

It uses TextMate grammar to syntax highlighting and ctags/gtags to source code navigation (symbols, definitions, implementations).

Unless neovim/vim has a bridge to use VS Code extensions, maybe you could borrow those to create a new extension to neovim/vim.

Hope this helps

Cris-lml007 commented 1 year ago

Hello, sorry for not responding, neovim has natively incorporated LSP, I don't know if this information is very helpful and if it is possible to redirect the extension to LSP so that it is not very laborious to do it again from scratch.

alefragnani commented 1 year ago

If Neovim supports LSP, I guess your best shot is to look for OmniPascal and/or DelphiLSP extensions, as both already uses LSP. Maybe they could create a Neovim plugin that connects to its servers. It would be easier for them.

That’s the beauty of LSP. Once you have a LSP for a language, simply connect it with the IDE/Editor you want, developing its plugin/extension.

Unfortunately, I have no intention to develop a new Delphi/Pascal/FreePascal LSP, as there are already these two in the wild. In fact, I would like to be able to use DelphiLSP (from Embarcadero) on my extension, but they don’t provide it for free and neither is multiplatform. I hope they could change it in the future