update:nvim11->12 config

This commit is contained in:
2026-04-13 21:38:27 +09:00
parent f6cb9e99f9
commit 50b410d323
22 changed files with 1093 additions and 1251 deletions

View File

@@ -0,0 +1,50 @@
local M = {}
local pack = require("utils.pack")
function M.setup()
pack.add({ "nvim-treesitter" })
require("nvim-treesitter").setup({
install_dir = vim.fn.stdpath("data") .. "/site",
})
require("nvim-treesitter").install({
"lua",
"vim",
"python",
"bash",
"javascript",
"typescript",
"html",
"css",
"json",
"toml",
"go",
"astro",
"templ",
})
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"lua",
"vim",
"python",
"bash",
"javascript",
"typescript",
"html",
"css",
"json",
"toml",
"go",
"astro",
"templ",
},
callback = function(args)
pcall(vim.treesitter.start, args.buf)
end,
})
end
return M