1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 10:24:47 +01:00
Files
dotfiles/.config/nvim/lua/plugins/nvim-treesitter.lua

35 lines
735 B
Lua

return {
-- better language highlighting by improved parsing
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
-- automatically close html-tags
"windwp/nvim-ts-autotag",
-- color brackets
-- 'p00f/nvim-ts-rainbow',
"nvim-treesitter/nvim-treesitter-context",
},
config = function()
local treesitter = require("nvim-treesitter")
treesitter.setup()
treesitter.install({
"bash",
"css",
"html",
"markdown",
"markdown_inline",
"latex",
"python",
"rust",
"lua",
"yaml",
})
require("nvim-ts-autotag").setup({
opts = {
enable_close = true,
enable_rename = true,
},
})
end,
}