lsp/presets/asm-lsp: init

This commit is contained in:
Snoweuph 2026-04-12 00:14:48 +02:00
commit 9ac800a85a
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.asm-lsp;
in {
options.vim.lsp.presets.asm-lsp = {
enable = mkEnableOption "the Assembly Language Server";
};
config = mkIf cfg.enable {
vim.lsp.servers.asm-lsp = {
enable = true;
cmd = [(getExe pkgs.asm-lsp)];
root_markers = [".git" ".asm-lsp.toml"];
};
};
}

View file

@ -1,6 +1,7 @@
{
imports = [
./arduino-language-server.nix
./asm-lsp.nix
./basedpyright.nix
./deno.nix
./harper.nix