Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 393 Bytes

readme.md

File metadata and controls

21 lines (18 loc) · 393 Bytes

Tree-sitter Grammar for Mail

lazy.nvim Install

Add to tree-sitter config:

{
  'nvim-treesitter/nvim-treesitter',
  -- ...
  dependencies = {
    'stevenxxiu/tree-sitter-mail',
  },
  -- ...
}

To parse the body, in e.g. Markdown, add to ~/.config/nvim/after/queries/mail/injections.scm:

((body) @injection.content
 (#set! injection.language "markdown"))