~rockorager/tree-sitter-aerc

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rockorager/tree-sitter-aerc
read/write
git@git.sr.ht:~rockorager/tree-sitter-aerc

You can also use your local clone with git send-email.

#tree-sitter-aerc

tree-sitter grammar for aerc logs

#Usage

#neovim

  1. Manually add the parser to your nvim config:
    require("nvim-treesitter.parsers").get_parser_configs().aerc = {
        install_info = {
            url = "https://git.sr.ht/~rockorager/tree-sitter-aerc",
            files = {"src/parser.c"},
        },
        filetype = "aerc",
        requires_generate_from_grammar = true,
    }
    
  2. Link or copy queries/highlights.scm to $XDG_CONFIG_HOME/nvim/queries/aerc/highlights.scm
  3. Open nvim, and run :TSInstall aerc
  4. Open a log from aerc, and run :set ft=aerc