fix config errors

This commit is contained in:
Charlotte 🦝 Delenk 2023-04-13 19:13:40 +01:00
parent 2165ad0aa6
commit 1b8663a9e1
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 6 additions and 2 deletions

View file

@ -15,7 +15,7 @@ in {
if config.isDesktop
then ''
local from_json = require('nix-neovim.utils').from_json
for k, v in pairs(from_json("${json_setup})) do
for k, v in pairs(from_json("${json_setup}")) do
require("lspconfig")[k].setup(v)
end
''
@ -24,6 +24,10 @@ in {
if config.isDesktop
then config.lspconfigPath
else [];
output.plugins =
if config.isDesktop
then [pkgs.vimPlugins.nvim-lspconfig]
else [];
};
options.lspconfig = mkOption {

View file

@ -30,7 +30,7 @@
dhall_lsp_server = {};
diagnosticls = {};
dockerls = {};
elixirls.cmd = "elixir-ls";
elixirls.cmd = ["elixir-ls"];
gopls = {};
hls.filetypes = ["haskell" "lhaskell" "cabal"];
html = {};