mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 20:05:23 +00:00
lsp/presets/python-lsp-server: init
This commit is contained in:
parent
5ee04aa8ad
commit
ee388f875f
2 changed files with 25 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
./deno.nix
|
./deno.nix
|
||||||
./harper.nix
|
./harper.nix
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
|
./python-lsp-server.nix
|
||||||
./qmlls.nix
|
./qmlls.nix
|
||||||
./r-languageserver.nix
|
./r-languageserver.nix
|
||||||
./ruby-lsp.nix
|
./ruby-lsp.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/python-lsp-server.nix
Normal file
24
modules/plugins/lsp/presets/python-lsp-server.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.meta) getExe;
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
|
cfg = config.vim.lsp.presets.python-lsp-server;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.python-lsp-server = {
|
||||||
|
enable = mkEnableOption "the Python Language Server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.python-lsp-server = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.python3Packages.python-lsp-server)];
|
||||||
|
root_markers = [".git"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue