From e2a5f0f30bbee8f75dae5857e674d7c36b9c6d83 Mon Sep 17 00:00:00 2001 From: Kutsan Kaplan Date: Sun, 29 Sep 2024 00:46:42 +0300 Subject: [PATCH] refactor(nvim): use setup function to setup nvim-ts-autotag --- .config/nvim/lua/specs/treesitter.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/specs/treesitter.lua b/.config/nvim/lua/specs/treesitter.lua index 14ced106..30ae69d8 100644 --- a/.config/nvim/lua/specs/treesitter.lua +++ b/.config/nvim/lua/specs/treesitter.lua @@ -33,9 +33,6 @@ Plugin.opts = { enable = true, additional_vim_regex_highlighting = false, }, - autotag = { - enable = true, - }, textobjects = { select = { enable = true, @@ -138,9 +135,11 @@ Plugin.opts = { Plugin.config = function(_, opts) local treesitter = require('nvim-treesitter.configs') local treesitter_context = require('treesitter-context') + local treesitter_autotag = require('nvim-ts-autotag') treesitter.setup(opts) + treesitter_autotag.setup() treesitter_context.setup({ max_lines = 3, })