initial commit
This commit is contained in:
parent
180a864e19
commit
f58d044ada
18 changed files with 747 additions and 1 deletions
33
lua/plugins/treesitter.lua
Normal file
33
lua/plugins/treesitter.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue