From fc5fe0e5b54049bbf866783206ab8140c892b7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Flo=C3=9Fmann?= Date: Wed, 6 Aug 2025 10:28:23 +0200 Subject: [PATCH] add selinux treesitter --- lua/plugins/user.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 58de26c..f607204 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -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 {