antosha417 / tree-sitter-hocon

Hocon grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hocon grammar for tree-sitter

Syntax highlighting

Tree-sitter highting in neovim: image For highlighting to work you need to tell neovim to set right filetype. To do it put this in your init.lua:

local hocon_group = vim.api.nvim_create_augroup("hocon", { clear = true })
vim.api.nvim_create_autocmd(
  { 'BufNewFile', 'BufRead' }, 
  { group = hocon_group, pattern = '*/resources/*.conf', command = 'set ft=hocon' }
)

Useful links

hocon-playground
hocon-description

About

Hocon grammar for tree-sitter

License:MIT License


Languages

Language:C 95.9%Language:JavaScript 2.3%Language:Rust 1.2%Language:C++ 0.3%Language:Scheme 0.2%Language:Python 0.1%