nixos/config/nvim/lua/plugins/treesitter.lua

17 lines
381 B
Lua
Raw Normal View History

return {
"nvim-treesitter/nvim-treesitter",
2023-02-20 11:32:30 +00:00
event = { "BufReadPre", "BufNewFile" },
2023-02-21 17:31:20 +00:00
cmd = {
"TSToggle",
"TSBufEnable",
"TSBufToggle",
"TSInstall",
"TSUpdate",
"TSEnable",
2023-02-21 17:31:20 +00:00
},
config = function()
require("nvim-treesitter.configs").setup(require "config.treesitter")
-- vim.cmd "TSUpdate"
end,
}