mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-06-07 00:48:24 +02:00
treesitter is cool
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
require("nvim-treesitter.config").setup {
|
local treesitter = require "nvim-treesitter"
|
||||||
ensure_installed = "all",
|
|
||||||
sync_install = true,
|
treesitter.install { "all" }
|
||||||
auto_install = true,
|
|
||||||
highlight = { enable = true, additional_vim_regex_highlighting = false },
|
local parsers = treesitter.get_installed()
|
||||||
indent = { enable = true, disable = {} },
|
|
||||||
autotag = { enable = true },
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
}
|
pattern = parsers,
|
||||||
|
callback = function()
|
||||||
|
vim.treesitter.start()
|
||||||
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
lazy = false,
|
||||||
|
branch = "main",
|
||||||
|
build = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
require "config.treesitter"
|
require "config.treesitter"
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user