2021-06-25 16:06:13 +00:00
|
|
|
local M = {}
|
2021-03-07 14:22:30 +00:00
|
|
|
|
2021-06-25 16:06:13 +00:00
|
|
|
M.config = function()
|
|
|
|
local ts_config = require("nvim-treesitter.configs")
|
|
|
|
|
|
|
|
ts_config.setup {
|
|
|
|
ensure_installed = {
|
|
|
|
"javascript",
|
|
|
|
"html",
|
|
|
|
"css",
|
|
|
|
"bash",
|
|
|
|
"lua",
|
|
|
|
"json",
|
|
|
|
"python"
|
|
|
|
-- "rust",
|
|
|
|
-- "go"
|
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true
|
|
|
|
}
|
2021-03-13 01:23:02 +00:00
|
|
|
}
|
2021-06-25 16:06:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|