28 lines
956 B
Lua
28 lines
956 B
Lua
-- Tree-sitter
|
|
require('nvim-treesitter.configs').setup {
|
|
-- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
|
ensure_installed = { 'bash', 'c', 'cpp', 'c_sharp', 'clojure', 'cmake', 'comment', 'commonlisp',
|
|
'css', 'dockerfile', 'elixir', 'erlang', 'fish', 'go', 'html', 'http', 'java',
|
|
'javascript', 'json', 'kotlin', 'latex', 'lua', 'make', 'markdown', 'perl', 'php',
|
|
'python', 'ruby', 'rust', 'scss', 'swift', 'toml', 'tsx', 'vim', 'vue', 'yaml' },
|
|
-- ignore_install = { 'norg' },
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
context_commentstring = {
|
|
enable = true,
|
|
enable_autocmd = false,
|
|
},
|
|
rainbow = {
|
|
enable = true,
|
|
disable = { "html" },
|
|
extended_mode = false,
|
|
max_file_lines = nil,
|
|
},
|
|
indent = { enable = false },
|
|
autopairs = { enable = true },
|
|
autotag = { enable = true },
|
|
incremental_selection = { enable = true },
|
|
}
|