mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
19 lines
399 B
Nix
19 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.lsp.plugins.enabledServers = [ "rnix" ];
|
||
|
};
|
||
|
}
|