mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
18 lines
399 B
Nix
18 lines
399 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.programs.nixvim.plugins.lsp.servers.rnix-lsp;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nixvim.plugins.lsp.servers.rnix-lsp = {
|
|
enable = mkEnableOption "Enable rnix LSP, for Nix";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim.extraPackages = [ pkgs.rnix-lsp ];
|
|
|
|
programs.nixvim.plugins.lsp.enabledServers = [ "rnix" ];
|
|
};
|
|
}
|