mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
nvim-lsp: add pyright lsp
This commit is contained in:
parent
1e98f2f597
commit
42870eb04b
2 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,7 @@ in
|
||||||
./clangd.nix
|
./clangd.nix
|
||||||
./rust-analyzer.nix
|
./rust-analyzer.nix
|
||||||
./rnix-lsp.nix
|
./rnix-lsp.nix
|
||||||
|
./pyright.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
18
plugins/nvim-lsp/pyright.nix
Normal file
18
plugins/nvim-lsp/pyright.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ 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"];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue