mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-16 17:46:26 +00:00
37 lines
714 B
Lua
37 lines
714 B
Lua
-- Configures nvim-treesitter
|
|
local M = {}
|
|
|
|
local ensure_installed = {
|
|
"bash",
|
|
"css",
|
|
"fish",
|
|
"go",
|
|
"gomod",
|
|
"javascript",
|
|
"json",
|
|
"lua",
|
|
"python",
|
|
"rust",
|
|
"yaml",
|
|
}
|
|
|
|
function M.bootstrap()
|
|
require("nvim-treesitter.install").ensure_installed_sync(ensure_installed)
|
|
end
|
|
|
|
function M.setup()
|
|
require("nvim-treesitter.configs").setup({
|
|
incremental_selection = { enable = true },
|
|
-- Indent appears to be broken right now
|
|
indent = { enable = false },
|
|
textobjects = { enable = true },
|
|
highlight = {
|
|
enable = true,
|
|
disable = {},
|
|
},
|
|
ensure_installed = ensure_installed,
|
|
})
|
|
end
|
|
|
|
return M
|