mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 11:30:06 +02:00
19 lines
379 B
Nix
19 lines
379 B
Nix
|
{ 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" ];
|
||
|
};
|
||
|
}
|