mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
18 lines
400 B
Nix
18 lines
400 B
Nix
{ config, pkgs, lib, ...}:
|
|
with lib;
|
|
let
|
|
cfg = config.programs.nixvim.plugins.lsp.servers.pyright;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nixvim.plugins.lsp.servers.pyright = {
|
|
enable = mkEnableOption "Enable pyright, for Python.";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim.extraPackages = [ pkgs.pyright ];
|
|
|
|
programs.nixvim.plugins.lsp.enabledServers = [ "pyright"];
|
|
};
|
|
}
|