mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
42 lines
674 B
Lua
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
|
|
}
|
|
}
|