init.el i set
(lua +lsp) and
(python +lsp). In NixOS i installed the corresponding
python-language-server. I can start both of them in the terminal, so they are installed correctly.
Due to the peculiarities of NixOS, i have to tell Emacs where to look for the language server
bin. I tried each of the following settings:
However, with each setting (only one enabled at a time), emacs tells me that the language server could not be found and offers to install a language server, which doesn’t work on NixOS.
The only exception is
(setq lsp-python-ms-executable (executable-find "python-language-server")) which is straight from the installation instructions for the package and yields:
The strange thing is, that it worked in the past for
lua-language-server with the setting shown in the first screenshot (didn’t try python at the time). I then uninstalled the modules and packages for a few weeks and now it doesn’t work anymore.
Emacs should connect to the language servers.
Loading data dump...