mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
20 lines
506 B
Lua
20 lines
506 B
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
require("nvim-treesitter.configs").setup {
|
|
ensure_installed = { "lua", "go", "gomod" },
|
|
highlight = { enable = true },
|
|
indent = { enable = true, disable = { "python", "yml" } },
|
|
autotag = { enable = true },
|
|
context_commentstring = { enable = true },
|
|
rainbow = {
|
|
enable = false,
|
|
extended_mode = true,
|
|
max_file_lines = 500,
|
|
},
|
|
}
|
|
|
|
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
|
|
end
|
|
|
|
return M
|