- Add
nuf
filetype
vim.filetype.add({ extension = { nuf = "nuf" } })
- Add
nuf
parser
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.nuf = {
install_info = {
url = "github.com/nuflang/tree-sitter-nuf",
files = { "src/parser.c" },
},
}
- Add
nuf
query in/queries/nuf/hightlights.scm
(function_call (identifier) @function.builtin)
(bracket) @punctuation.bracket
(string) @string
(delimiter) @punctuation.delimiter
("inside") @keyword
(custom_name) @variable
:TSInstall nuf