lsp/presets/taplo: init

This commit is contained in:
Snoweuph 2026-04-11 13:29:38 +02:00
commit 854184e10e
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 25 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./deno.nix
./harper.nix
./lemminx.nix
./taplo.nix
./tinymist.nix
./twig-language-server.nix
./typescript-go.nix

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