development/templates/nvim/lua/tree-sitter.lua.j2
Sonny Bakker b0cdf7b854 Update neovim setup
Switch from pyright to python-lsp-server
2023-08-04 10:29:11 +02:00

24 lines
747 B
Django/Jinja

-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
-- 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,
},
}