cfxlua-vscode icon indicating copy to clipboard operation
cfxlua-vscode copied to clipboard

External Editor Support

Open Bobrokus opened this issue 1 year ago • 6 comments

I really like the extension and I would like to use it outside of VSCode in an external code editor like Helix (or Vim/Nvim).

This could be achieved by creating a standalone CLI version of the language server.

Bobrokus avatar May 13 '24 18:05 Bobrokus

This could be achieved by creating a standalone CLI version of the language server.

The language server is from https://github.com/LuaLS/lua-language-server and is not dependant on vscode. This resource just installs the vscode-lua extension, includes fivem-lls-addon, and changes some settings for you.

See the links below to use any code editor.

  • https://luals.github.io/#neovim-install
  • https://luals.github.io/#other-install

Download fivem-lls-addon and configure the libraries and plugin in a .luarc.json file in your project root to include those paths.

thelindat avatar May 13 '24 19:05 thelindat

@thelindat Hey, thanks for the response!

Actually, I already have https://github.com/LuaLS/lua-language-server installed and setup with Helix. I found this addon: https://github.com/ProjectTH/fivem-lls-addon, and I was wondering if it's somehow related to your addon

Bobrokus avatar May 13 '24 19:05 Bobrokus

I found this addon: https://github.com/ProjectTH/fivem-lls-addon, and I was wondering if it's somehow related to your addon

For whatever reason they forked my plugin, made objectively worse native codegen, and then PR'd it to LLS-Addons which is a vscode addon viewer.

thelindat avatar May 13 '24 20:05 thelindat

For whatever reason they forked my plugin, made objectively worse native codegen, and then PR'd it to LLS-Addons which is a vscode addon viewer.

Oh. That's what I thought. It's a shame. Good to know though!

Bobrokus avatar May 13 '24 20:05 Bobrokus

Download fivem-lls-addon and configure the libraries and plugin in a .luarc.json file in your project root to include those paths.

I've successfully configured everything and it works amazingly! Thanks for the advice

Bobrokus avatar May 14 '24 14:05 Bobrokus

This resource just installs the vscode-lua extension, includes fivem-lls-addon, and changes some settings for you.

Download fivem-lls-addon and configure the libraries and plugin in a .luarc.json file in your project root to include those paths.

For whatever reason they forked my plugin, made objectively worse native codegen, and then PR'd it to LLS-Addons which is a vscode addon viewer.

It would be great if all of this was included in the README file

Bobrokus avatar May 14 '24 14:05 Bobrokus