josa42 / coc-lua

Lua language server extension using lua-lsp for coc.nvim.
MIT License
134 stars 5 forks source link

support NixOS #93

Open Freed-Wu opened 1 year ago

Freed-Wu commented 1 year ago

Similar with https://github.com/ntkme/sass-embedded-host-ruby/issues/116. coc-lua will download lua-language-server, but any program which respects FHS need to be patchelfed to work in NixOS. Why not let it use system-wide lua-language-server?

Freed-Wu commented 1 year ago

Currently, I must

ln -sf $(which lua-language-server) ~/.config/coc/extensions/coc-lua-data/lua-language-server/bin

To make it work.

Sourdface commented 11 months ago

At the very least there should be an option to use a different lua-language-server path, if not an option use the one on the system path. This is how most plugins that use language servers seem to work.

Freed-Wu commented 11 months ago

At the very least there should be an option to use a different lua-language-server path, if not an option use the one on the system path. This is how most plugins that use language servers seem to work.

Yes, I notice coc-clangd do like you said. It use system's clangd by default. If clangd is not found in $PATH, popup a window to ask users if download clangd.