mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
lsp/presets/taplo: init
This commit is contained in:
parent
31b017b601
commit
854184e10e
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
|
||||||
|
./taplo.nix
|
||||||
./tinymist.nix
|
./tinymist.nix
|
||||||
./twig-language-server.nix
|
./twig-language-server.nix
|
||||||
./typescript-go.nix
|
./typescript-go.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/taplo.nix
Normal file
24
modules/plugins/lsp/presets/taplo.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.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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue