lsp/presets/glsl_analyzer: init

This commit is contained in:
Snoweuph 2026-04-12 14:50:40 +02:00
commit b95390794e
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 25 additions and 0 deletions

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.glsl_analyzer;
in {
options.vim.lsp.presets.glsl_analyzer = {
enable = mkEnableOption "the GLSL-Analyzer Language Server";
};
config = mkIf cfg.enable {
vim.lsp.servers.glsl_analyzer = {
enable = true;
cmd = [(getExe pkgs.glsl_analyzer)];
root_markers = [".git"];
};
};
}