update treesitter
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function ()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = "all",
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<Enter>",
|
||||
node_incremental = "<Enter>",
|
||||
scope_incremental = false,
|
||||
node_decremental = "<Backspace>"
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
branch = "main",
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.config")
|
||||
--
|
||||
-- configs.setup({
|
||||
-- ensure_installed = "all",
|
||||
-- sync_install = false,
|
||||
-- highlight = { enable = true },
|
||||
-- indent = { enable = true },
|
||||
-- incremental_selection = {
|
||||
-- enable = true,
|
||||
-- keymaps = {
|
||||
-- init_selection = "<Enter>",
|
||||
-- node_incremental = "<Enter>",
|
||||
-- scope_incremental = false,
|
||||
-- node_decremental = "<Backspace>",
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user