mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 20:05:23 +00:00
24 lines
531 B
Nix
24 lines
531 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.meta) getExe;
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.types) mkLspPresetEnableOption;
|
|
|
|
cfg = config.vim.lsp.presets.python-lsp-server;
|
|
in {
|
|
options.vim.lsp.presets.python-lsp-server = {
|
|
enable = mkLspPresetEnableOption "python-lsp-server" "Python" [];
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
vim.lsp.servers.python-lsp-server = {
|
|
enable = true;
|
|
cmd = [(getExe pkgs.python3Packages.python-lsp-server)];
|
|
root_markers = [".git"];
|
|
};
|
|
};
|
|
}
|