Files
dotfiles/nvim/plugin-config/treesitter.lua
2021-12-11 16:06:51 +01:00

42 lines
674 B
Lua

-- nvim-treesitter
-- https://github.com/nvim-treesitter/nvim-treesitter
local status, treesitter = pcall(require, 'nvim-treesitter')
if (not status) then return end
treesitter.setup {
ensure_installed = {
'bash',
'css',
'dockerfile',
'graphql',
'html',
'javascript',
'jsdoc',
'json',
'lua',
'python',
'ruby',
'scss',
'svelte',
'toml',
'tsx',
'typescript',
'vim',
'vue',
'yaml',
},
highlight = {
enable = true,
disable = {},
additional_vim_regex_highlighting = true
},
indent = {
enable = true,
disable = {},
},
context_commentstring = {
enable = true
}
}