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

26 lines
882 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', 'typescript', 'css', 'scss',
'html', 'htmldjango', 'sql', 'json', 'dockerfile', 'markdown', 'rst', 'tmux',
'xml', 'toml', 'editorconfig', 'diff', 'gitcommit', 'git_config', 'gitignore',
'gitattributes', 'make', 'nginx', 'vim', 'vimdoc', 'passwd', 'regex'
},
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
},
incremental_selection = {
enable = true,
},
}