2022-04-19 09:57:02 +02:00
|
|
|
vim.wo.foldmethod = "expr"
|
|
|
|
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
|
|
|
|
|
2021-04-18 18:51:03 +02:00
|
|
|
require("nvim-treesitter.configs").setup {
|
2022-04-19 09:27:09 +02:00
|
|
|
ensure_installed = "all",
|
2021-04-20 10:15:40 +02:00
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true,
|
2021-04-20 18:10:56 +02:00
|
|
|
},
|
2021-04-20 10:15:40 +02:00
|
|
|
|
2021-04-20 18:10:56 +02:00
|
|
|
indent = {
|
|
|
|
enable = false
|
|
|
|
},
|
2021-04-20 10:15:40 +02:00
|
|
|
|
|
|
|
playground = {
|
|
|
|
enable = true,
|
|
|
|
disable = {},
|
|
|
|
updatetime = 25,
|
|
|
|
persist_queries = false
|
|
|
|
},
|
|
|
|
|
|
|
|
incremental_selection = {
|
|
|
|
enable = true,
|
|
|
|
keymaps = {
|
|
|
|
init_selection = "ss",
|
|
|
|
node_incremental = "sq",
|
|
|
|
scope_incremental = "sd",
|
|
|
|
node_decremental = "sa",
|
2021-04-19 20:22:00 +02:00
|
|
|
},
|
2021-04-20 10:15:40 +02:00
|
|
|
},
|
2021-04-19 20:22:00 +02:00
|
|
|
|
2021-04-20 10:15:40 +02:00
|
|
|
textobjects = {
|
|
|
|
move = {
|
2021-04-19 20:22:00 +02:00
|
|
|
enable = true,
|
2021-04-20 10:15:40 +02:00
|
|
|
goto_next_start = {
|
|
|
|
["]]"] = "@function.outer",
|
|
|
|
["]m"] = "@class.outer"
|
|
|
|
},
|
|
|
|
goto_next_end = {
|
|
|
|
["]["] = "@function.outer",
|
|
|
|
["]M"] = "@class.outer"
|
|
|
|
},
|
|
|
|
goto_previous_start = {
|
|
|
|
["[["] = "@function.outer",
|
|
|
|
["[m"] = "@class.outer"
|
2021-04-19 20:22:00 +02:00
|
|
|
},
|
2021-04-20 10:15:40 +02:00
|
|
|
goto_previous_end = {
|
|
|
|
["[]"] = "@function.outer",
|
|
|
|
["[M"] = "@class.outer"
|
|
|
|
}
|
2021-04-19 20:22:00 +02:00
|
|
|
},
|
2021-04-20 10:15:40 +02:00
|
|
|
},
|
|
|
|
--- nvim-ts-autotag ---
|
|
|
|
autotag = {
|
|
|
|
enable = true,
|
|
|
|
filetypes = {"html", "javascriptreact", "xml"}
|
|
|
|
}
|
2021-04-18 18:51:03 +02:00
|
|
|
}
|