plugins/lsp: add ast-grep language server

This commit is contained in:
Gaetan Lepage 2024-04-26 11:42:49 +02:00 committed by Gaétan Lepage
parent e2e7258267
commit b12d81c69a
2 changed files with 9 additions and 0 deletions

View file

@ -15,6 +15,14 @@ with lib; let
package = pkgs.ansible-language-server;
cmd = cfg: ["${cfg.package}/bin/ansible-language-server" "--stdio"];
}
{
name = "ast-grep";
description = ''
ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
ast-grep LSP only works in projects that have `sgconfig.y[a]ml` in their root directories.
'';
serverName = "ast_grep";
}
{
name = "astro";
description = "astrols for Astro";

View file

@ -104,6 +104,7 @@
servers = {
ansiblels.enable = true;
ast-grep.enable = true;
astro.enable = true;
bashls.enable = true;
beancount.enable = true;