add selinux treesitter

This commit is contained in:
Michael Floßmann 2025-08-06 10:28:23 +02:00
parent eca0ed608d
commit fc5fe0e5b5

View file

@ -2,6 +2,24 @@
-- PLEASE REMOVE THE EXAMPLES YOU HAVE NO INTEREST IN BEFORE ENABLING THIS FILE
-- Here are some examples:
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config["selinux"] = {
install_info = {
url = "/home/michaelflossmann/code/tree-sitter-selinux_2",
files = { "src/parser.c" },
branch = "main",
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = "selinux",
}
vim.filetype.add {
extension = {
te = "selinux",
},
}
---@type LazySpec
return {