mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 20:05:23 +00:00
24 lines
471 B
Nix
24 lines
471 B
Nix
{
|
|
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"];
|
|
};
|
|
};
|
|
}
|