mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-05-22 06:24:43 +01:00
Updated treesitter config for new neovim version
This commit is contained in:
+12
-3
@@ -79,9 +79,18 @@ return {
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
config = function(_, opts)
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
config = function()
|
||||
local treesitter = require("nvim-treesitter")
|
||||
treesitter.setup()
|
||||
treesitter.install = { "bash", "c", "html", "lua", "markdown", "nu", "vim", "vimdoc" }
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "bash", "c", "html", "lua", "markdown", "nu", "vim", "vimdoc" },
|
||||
callback = function()
|
||||
vim.treesitter.start()
|
||||
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user