nvim-lsp: add zls support

This commit is contained in:
Gabriel Maturana
2022-01-17 19:02:08 +00:00
committed by GitHub
parent ba4afda369
commit 9d1911a5d5
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ in
./rust-analyzer.nix
./rnix-lsp.nix
./pyright.nix
./zls.nix
];
options = {
+18
View File
@@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.nixvim.plugins.lsp.servers.zls;
in
{
options = {
programs.nixvim.plugins.lsp.servers.zls = {
enable = mkEnableOption "Enable zls, for Zig.";
};
};
config = mkIf cfg.enable {
programs.nixvim.extraPackages = [ pkgs.zls ];
programs.nixvim.plugins.lsp.enabledServers = [ "zls" ];
};
}