tree-sitter-hexdump

Crates.iotree-sitter-hexdump
lib.rstree-sitter-hexdump
version0.1.0
sourcesrc
created_at2023-03-29 09:16:42.577934
updated_at2023-03-29 09:16:42.577934
descriptionhexdump grammar for the tree-sitter parsing library
homepage
repositoryhttps://github.com/rush-rs/tree-sitter-hexdump
max_upload_size
id823954
size29,001
Silas Groh (RubixDev)

documentation

README

tree-sitter-hexdump

Simple hexdump grammar for tree-sitter

Usage in Neovim

Parser Installation

The nvim-treesitter plugin does not include this parser. To use it you must instead manually add it to your tree-sitter config and then install it with :TSInstall hexdump or by adding it to your ensure_installed list:

require('nvim-treesitter.parsers').get_parser_configs().hexdump = {
    install_info = {
        url = 'https://github.com/rush-rs/tree-sitter-hexdump.git',
        files = { 'src/parser.c' },
        branch = 'main',
    },
}

File type detection

You will likely also have to add the hexdump file type:

vim.filetype.add { extension = { hexdump = 'hexdump' } }

Highlighting

If you want to use this parser for highlighting, you will also have to add this repository as a plugin, for example for packer.nvim add this:

use { 'rush-rs/tree-sitter-hexdump' }
Commit count: 3

cargo fmt