mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 03:47:37 +00:00
24 lines
456 B
Nix
24 lines
456 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.meta) getExe;
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
cfg = config.vim.lsp.presets.taplo;
|
|
in {
|
|
options.vim.lsp.presets.taplo = {
|
|
enable = mkEnableOption "the Taplo Language Server";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
vim.lsp.servers.taplo = {
|
|
enable = true;
|
|
cmd = [(getExe pkgs.taplo) "lsp" "stdio"];
|
|
root_markers = [".git"];
|
|
};
|
|
};
|
|
}
|