2022-05-06 20:44:10 -05:00
|
|
|
local parser_configs = require('nvim-treesitter.parsers').get_parser_configs()
|
2022-01-14 01:41:10 -06:00
|
|
|
|
2022-05-06 20:44:10 -05:00
|
|
|
-- parser_configs.norg = {
|
|
|
|
-- install_info = {
|
|
|
|
-- url = "https://github.com/nvim-neorg/tree-sitter-norg",
|
|
|
|
-- files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
-- branch = "main",
|
|
|
|
-- },
|
|
|
|
-- }
|
|
|
|
--
|
|
|
|
-- parser_configs.norg_meta = {
|
|
|
|
-- install_info = {
|
|
|
|
-- url = "https://github.com/nvim-neorg/tree-sitter-norg-meta",
|
|
|
|
-- files = { "src/parser.c" },
|
|
|
|
-- branch = "main",
|
|
|
|
-- },
|
|
|
|
-- }
|
|
|
|
--
|
|
|
|
-- parser_configs.norg_table = {
|
|
|
|
-- install_info = {
|
|
|
|
-- url = "https://github.com/nvim-neorg/tree-sitter-norg-table",
|
|
|
|
-- files = { "src/parser.c" },
|
|
|
|
-- branch = "main",
|
|
|
|
-- },
|
|
|
|
-- }
|
2022-01-14 01:41:10 -06:00
|
|
|
|
2022-05-06 20:44:10 -05:00
|
|
|
local nvim_treesitter = require('nvim-treesitter.configs')
|
2022-01-14 01:41:10 -06:00
|
|
|
|
|
|
|
nvim_treesitter.setup({
|
2022-05-06 20:44:10 -05:00
|
|
|
-- ensure_installed = {
|
|
|
|
-- 'norg',
|
|
|
|
-- 'norg_meta',
|
|
|
|
-- 'norg_table',
|
|
|
|
-- },
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = true,
|
|
|
|
disable = { 'yaml' },
|
|
|
|
},
|
|
|
|
matchup = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
autotag = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
yati = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2022-01-14 01:41:10 -06:00
|
|
|
})
|