astronvim_config/lua/plugins/treesitter.lua
Michael Floßmann f58d044ada initial commit
2025-07-03 09:34:30 +02:00

33 lines
719 B
Lua

if true then return {} end
-- Customize Treesitter
---@type LazySpec
return {
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"lua",
"vim",
"markdown",
-- add more arguments for adding more treesitter parsers
},
highlight = {
enable = true,
},
},
config = function()
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config["selinux"] = {
install_info = {
url = "~/code/tree-sitter-selinux/",
files = { "src/parser.c" },
branch = "main",
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = "te",
}
end,
}