1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/nvim/lua/plugins/treesitter.lua

40 lines
660 B
Lua
Raw Normal View History

2022-03-20 04:22:56 +00:00
require("nvim-treesitter.configs").setup({
ensure_installed = {
"bash",
2022-08-15 18:34:10 +00:00
"cpp",
"css",
2022-03-20 04:22:56 +00:00
"fish",
2022-08-15 18:34:10 +00:00
"gdscript",
"go",
"gomod",
2022-03-20 04:22:56 +00:00
"html",
"json",
2022-08-15 18:34:10 +00:00
"julia",
"latex",
"lua",
"python",
"rust",
2022-08-21 19:04:16 +00:00
"scss",
2022-08-15 18:34:10 +00:00
"sql",
2022-04-03 23:53:04 +00:00
"toml",
"yaml",
2022-08-15 18:34:10 +00:00
-- "markdown",
-- "markdown_inline",
2022-03-20 04:22:56 +00:00
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
rainbow = {
enable = true,
2022-04-03 23:53:04 +00:00
extended_mode = true,
2022-03-20 04:22:56 +00:00
},
2022-08-15 19:22:07 +00:00
autotag = {
enable = true,
2022-11-02 15:17:23 +00:00
filetypes = { "html", "htmldjango" },
2022-08-15 19:22:07 +00:00
},
2022-03-20 04:22:56 +00:00
})
2022-11-02 15:17:23 +00:00
-- Temporary workaround for autotag in htmldjango until a parser exists
require("nvim-treesitter.parsers").filetype_to_parsername.htmldjango = "html"