2021-07-04 09:54:33 +02:00
|
|
|
{# Allow for better syntax highlighting. Bit experimental #}
|
|
|
|
{{ add_source('nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}) -}}
|
|
|
|
{# To check if it's really working
|
|
|
|
{{ add_source('nvim-treesitter/playground') -}}
|
|
|
|
#}
|
2021-07-04 12:41:34 +02:00
|
|
|
lua <<EOF
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
2022-11-04 17:46:44 +01:00
|
|
|
ensure_installed = {
|
|
|
|
"bash",
|
|
|
|
"bibtex",
|
|
|
|
"c",
|
|
|
|
"cmake",
|
|
|
|
"comment",
|
|
|
|
"cpp",
|
|
|
|
"css",
|
|
|
|
"diff",
|
|
|
|
"dockerfile",
|
|
|
|
"dot",
|
|
|
|
"git_rebase",
|
|
|
|
"gitattributes",
|
|
|
|
"gitignore",
|
|
|
|
"go",
|
|
|
|
"html",
|
|
|
|
"http",
|
|
|
|
"java",
|
|
|
|
"javascript",
|
|
|
|
"json",
|
|
|
|
"latex",
|
|
|
|
"llvm",
|
|
|
|
"lua",
|
|
|
|
"make",
|
|
|
|
"markdown",
|
|
|
|
"markdown_inline",
|
|
|
|
"perl",
|
|
|
|
"php",
|
|
|
|
"python",
|
|
|
|
"regex",
|
|
|
|
"ruby",
|
|
|
|
"scss",
|
|
|
|
"sql",
|
|
|
|
"verilog",
|
|
|
|
"vim",
|
|
|
|
"yaml",
|
|
|
|
},
|
2021-07-04 12:41:34 +02:00
|
|
|
ignore_install = {},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
incremental_selection = {
|
|
|
|
enable = true,
|
|
|
|
keymaps = {
|
|
|
|
init_selection = "gnn",
|
|
|
|
node_incremental = "grn",
|
|
|
|
scope_incremental = "grc",
|
|
|
|
node_decremental = "grm",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{# Not very working yet, I'm afraid
|
|
|
|
indent = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
#}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
{# TODO Investigate https://github.com/nvim-treesitter/nvim-treesitter-textobjects #}
|