mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 00:58:37 +00:00
language/asm: migrate to vim.lsp.servers
This commit is contained in:
parent
19ce540e7c
commit
0cbc1810f9
1 changed files with 6 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.meta) getExe;
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.types) package;
|
inherit (lib.types) package;
|
||||||
inherit (lib.nvim.types) mkGrammarOption;
|
inherit (lib.nvim.types) mkGrammarOption;
|
||||||
|
@ -36,14 +37,11 @@ in {
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf cfg.lsp.enable {
|
(mkIf cfg.lsp.enable {
|
||||||
vim.lsp.lspconfig.enable = true;
|
vim.lsp.servers.asm_lsp = {
|
||||||
vim.lsp.lspconfig.sources.asm-lsp = ''
|
cmd = [(getExe pkgs.asm-lsp)];
|
||||||
lspconfig.asm_lsp.setup {
|
filetypes = ["asm" "vmasm"];
|
||||||
capabilities = capabilities,
|
root_markers = [".asm-lsp.toml" ".git"];
|
||||||
on_attach = default_on_attach,
|
};
|
||||||
cmd = {"${cfg.lsp.package}/bin/asm-lsp"},
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue