nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] Prolog language server issues

Open wikiker opened this issue 1 year ago • 1 comments

Field Description
Plugin lsp.servers.prolog-ls
Nixpkgs unstable

  • [x] I have read the FAQ and my bug is not listed there.

Description

Just setting lsp.servers.prolog-ls.enable = true; isn't enough -- you need to manually download prolog plugin lsp_server as well. (https://www.swi-prolog.org/pack/list?p=lsp_server)

But even with the plugin installed, it still doesn't work, mainly the issue is with outputting diagnostics into LSP log file as errors instead of displaying them.

There isn't much info about setting this language server up, I couldn't find any relevant dotfiles, which would set prolog-ls differently than just enabling it.

wikiker avatar May 07 '24 10:05 wikiker

By default swiProlog is installed when you enable lsp.servers.prolog-ls. You could change that using lsp.servers.prolog-ls.package, or set null to prevent installing anything (and use what's on your PATH instead).

Is the swiProlog package somehow different from the lsp_server plugin? If so, that'd need to be packaged in nixpkgs so that we have something to install.

MattSturgeon avatar May 17 '24 15:05 MattSturgeon