/tree-sitter-hocon

Hocon grammar for tree-sitter

Primary LanguageCMIT LicenseMIT

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