dotfiles/config/automatrop/roles/vim/templates/plugins/treesitter.j2
Geoffrey Frogeye 9bfe9d25e4
Use RGB colors for nvim
So we can use some nice plugins.
2021-07-04 13:05:30 +02:00

31 lines
741 B
Django/Jinja

{# 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') -}}
#}
lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained",
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 #}