treesitter.lua

← Back to explorer
Old/ lua/ plugins/ configs/ treesitter.lua
Raw
Lua 14 lines · UTF-8
1234567891011121314
local present, ts_config = pcall(require, "nvim-treesitter.configs")
if not present then
   return
end

ts_config.setup {
   ensure_installed = {
      "lua",
   },
   highlight = {
      enable = true,
      use_languagetree = true,
   },
}