From 1b2784874b5b1c6cbbccaea9a05cbddb500a4aa4 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 23 Feb 2024 16:38:41 +0800 Subject: [PATCH] nvim-treesitter: format --- lua/plugins/nvim-treesitter.lua | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/lua/plugins/nvim-treesitter.lua b/lua/plugins/nvim-treesitter.lua index e4e21bd..a818d7c 100644 --- a/lua/plugins/nvim-treesitter.lua +++ b/lua/plugins/nvim-treesitter.lua @@ -1,24 +1,16 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", - init = function() - require("nvim-treesitter.configs").setup({ - -- A list of parser names, or "all" - ensure_installed = { - "nix", - "lua", - "vim", - }, + opts = { + ensure_installed = { + "nix", + "lua", + "vim", + }, - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - auto_install = true, - highlight = { - enable = true, - }, - indent = { - enable = true, - }, - }) - end, + sync_install = true, + auto_install = true, + highlight = { enable = true }, + indent = { enable = true }, + }, }