development/templates/nvim/lua/tree-sitter.lua.j2

24 lines
689 B
Django/Jinja

-- {{ ansible_managed }}
-- Tree sitter language parsers are installed automatically (through `auto_install`).
-- To update installed parsers use `:TSUpdate {language}`.
-- See https://github.com/nvim-treesitter/nvim-treesitter for more info.
local tree_sitter_config = require('nvim-treesitter.configs')
tree_sitter_config.setup {
ensure_installed = {
'lua', 'yaml', 'bash', 'python', 'javascript', 'css', 'scss', 'html',
'htmldjango', 'json', 'dockerfile', 'markdown',
},
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
},
incremental_selection = {
enable = true,
},
}