mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-25 16:50:23 -04:00
nvim-lsp: add zls support
This commit is contained in:
@@ -10,6 +10,7 @@ in
|
||||
./rust-analyzer.nix
|
||||
./rnix-lsp.nix
|
||||
./pyright.nix
|
||||
./zls.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
||||
@@ -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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user