24 lines
377 B
Lua
24 lines
377 B
Lua
|
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
||
|
|
||
|
require('nvim-treesitter.install').update({ with_sync = true })
|
||
|
|
||
|
|
||
|
if not present then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
local options = {
|
||
|
ensure_installed = {"lua", "haskell", "rust", },
|
||
|
|
||
|
highlight = {
|
||
|
enable = true,
|
||
|
use_languagetree = true,
|
||
|
},
|
||
|
|
||
|
indent = {
|
||
|
enable = true,
|
||
|
},
|
||
|
}
|
||
|
|
||
|
treesitter.setup(options)
|