mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-13 02:39:24 +00:00
lsp/presets/tombi: init
This commit is contained in:
parent
854184e10e
commit
03f948e41e
2 changed files with 25 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
./taplo.nix
|
./taplo.nix
|
||||||
./tinymist.nix
|
./tinymist.nix
|
||||||
|
./tombi.nix
|
||||||
./twig-language-server.nix
|
./twig-language-server.nix
|
||||||
./typescript-go.nix
|
./typescript-go.nix
|
||||||
./typescript-language-server.nix
|
./typescript-language-server.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/tombi.nix
Normal file
24
modules/plugins/lsp/presets/tombi.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.tombi;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.tombi = {
|
||||||
|
enable = mkEnableOption "the Tombi Language Server (AI Slop)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.tombi = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.tombi) "lsp"];
|
||||||
|
root_markers = [".git" "tombi.toml"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue