Skip to content

Repository files navigation

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

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages