coc-lua icon indicating copy to clipboard operation
coc-lua copied to clipboard

support NixOS

Open Freed-Wu opened this issue 2 years ago • 4 comments

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 avatar Apr 10 '23 12:04 Freed-Wu

Currently, I must

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

To make it work.

Freed-Wu avatar Jul 22 '23 10:07 Freed-Wu

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.

Sourdface avatar Nov 30 '23 20:11 Sourdface

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.

Freed-Wu avatar Nov 30 '23 21:11 Freed-Wu