nvf/modules/plugins/lsp/presets/taplo.nix
2026-04-15 18:12:50 +02:00

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"];
};
};
}