Added glsl highlight and added g++ as possible compiler for treesitter

This commit is contained in:
2025-04-27 14:20:05 +09:00
parent efc3e54900
commit 4abf910162
2 changed files with 22 additions and 2 deletions
+20 -2
View File
@@ -4,10 +4,28 @@ return {
build = ":TSUpdate",
config = function()
vim.cmd("TSUpdate")
require("nvim-treesitter.install").compilers = { "zig", "gcc", "cc", "cl", "clang" }
require("nvim-treesitter.install").compilers = { "zig", "g++", "gcc", "cc", "cl", "clang" }
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline", "typescript", "javascript", "css", "scss", "html", "svelte", "json", "yaml" }
ensure_installed = {
"c",
"lua",
"vim",
"vimdoc",
"query",
"markdown",
"markdown_inline",
"typescript",
"javascript",
"css",
"scss",
"html",
"svelte",
"json",
"yaml",
"cpp",
"glsl"
}
})
end
}