Skip to content

Instantly share code, notes, and snippets.

@sielicki
Created March 23, 2025 04:03
Show Gist options
  • Save sielicki/2020d6c49ea515237911f24624c95bdd to your computer and use it in GitHub Desktop.
Save sielicki/2020d6c49ea515237911f24624c95bdd to your computer and use it in GitHub Desktop.
ast-grep all the things
files."sgconfig.yml".yaml = {
customLanguages =
pkgs.vimPlugins.nvim-treesitter.grammarPlugins
|> builtins.mapAttrs (
n: d: {
extensions = [ n ]; # XXX: broken for many languages, works for nix at least...
libraryPath = d.outPath + "/parser/${n}.so";
languageSymbol = "_tree_sitter_${n}";
}
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment