mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-17 14:14:47 +01:00
NVIM: Updated Treesitter config for new API
This commit is contained in:
@@ -9,8 +9,9 @@ return {
|
|||||||
-- 'p00f/nvim-ts-rainbow',
|
-- 'p00f/nvim-ts-rainbow',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.config").setup({
|
local treesitter = require("nvim-treesitter")
|
||||||
ensure_installed = {
|
treesitter.setup()
|
||||||
|
treesitter.install({
|
||||||
"bash",
|
"bash",
|
||||||
"css",
|
"css",
|
||||||
"html",
|
"html",
|
||||||
@@ -21,16 +22,20 @@ return {
|
|||||||
"rust",
|
"rust",
|
||||||
"lua",
|
"lua",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
|
||||||
-- highlight = { enable = true },
|
|
||||||
autotag = { enable = false },
|
|
||||||
-- rainbow = {
|
|
||||||
-- enable = true,
|
|
||||||
-- extended_mode = true,
|
|
||||||
-- max_file_lines = nil,
|
|
||||||
-- -- colors = {},
|
|
||||||
-- -- termcolors = {}
|
|
||||||
-- }
|
|
||||||
})
|
})
|
||||||
|
require("nvim-ts-autotag").setup({
|
||||||
|
opts = {
|
||||||
|
enable_close = true,
|
||||||
|
enable_rename = true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
-- WARN: not directly compatible anymore
|
||||||
|
-- highlight = { enable = true },
|
||||||
|
-- rainbow = {
|
||||||
|
-- enable = true,
|
||||||
|
-- extended_mode = true,
|
||||||
|
-- max_file_lines = nil,
|
||||||
|
-- -- colors = {},
|
||||||
|
-- -- termcolors = {}
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user