Created
March 23, 2025 04:03
-
-
Save sielicki/2020d6c49ea515237911f24624c95bdd to your computer and use it in GitHub Desktop.
ast-grep all the things
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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