Add pyright lsp
This commit is contained in:
parent
5830d76e34
commit
e391a8d310
4 changed files with 30 additions and 10 deletions
18
flake.lock
18
flake.lock
|
@ -169,11 +169,11 @@
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1662101031,
|
"lastModified": 1662186434,
|
||||||
"narHash": "sha256-dTlT6J6+Rv6zno/VhJusBwgV7iFNRUdY4GgH7BUPWYk=",
|
"narHash": "sha256-N867s0Z20q9LNirVftWoKAmkEARmmHXZHyRTEmekf94=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "fenix",
|
"repo": "fenix",
|
||||||
"rev": "42e17909b3c69577303fd0c7ae138df3f4888de2",
|
"rev": "e228867146581fa5e4be25dafc0dd68fdd22f0ad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -400,11 +400,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659610603,
|
"lastModified": 1662136632,
|
||||||
"narHash": "sha256-LYgASYSPYo7O71WfeUOaEUzYfzuXm8c8eavJcel+pfI=",
|
"narHash": "sha256-RwW/aA3ueQPsilQLi7NOfUnn8MgM6WMV+oRpW+nkDMI=",
|
||||||
"owner": "nmattia",
|
"owner": "nmattia",
|
||||||
"repo": "naersk",
|
"repo": "naersk",
|
||||||
"rev": "c6a45e4277fa58abd524681466d3450f896dc094",
|
"rev": "8d2f4d00cb24cda8e5bdd802b827a0eaeff34eec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -415,11 +415,11 @@
|
||||||
},
|
},
|
||||||
"nixos": {
|
"nixos": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1662025319,
|
"lastModified": 1662099760,
|
||||||
"narHash": "sha256-ZJlBQ7jXynq4+Jg9+DgOe8FJG8sDIeFFYP3V3K98KUs=",
|
"narHash": "sha256-MdZLCTJPeHi/9fg6R9fiunyDwP3XHJqDd51zWWz9px0=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b82ccafb54163ab9024e893e578d840577785fea",
|
"rev": "67e45078141102f45eff1589a831aeaa3182b41e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -10,6 +10,7 @@ in
|
||||||
./go.nix
|
./go.nix
|
||||||
./rust.nix
|
./rust.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./python.nix
|
||||||
./clangd.nix
|
./clangd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
19
users/modules/neovim/python.nix
Normal file
19
users/modules/neovim/python.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.mae.nvim.python;
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.mae.nvim.python.enable = lib.mkEnableOption "Enable python language support in neovim";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
mae.nvim.lsp.servers.pyright = {
|
||||||
|
enable = true;
|
||||||
|
script = ''
|
||||||
|
{
|
||||||
|
cmd = { "${pkgs.nodePackages.pyright}/bin/pyright-langserver", "--stdio" },
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -9,6 +9,6 @@
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
clangd.enable = true;
|
clangd.enable = true;
|
||||||
#python.enable = true;
|
python.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue