Skip to content

Commit

Permalink
refactor(nvim): use setup function to setup nvim-ts-autotag
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Sep 28, 2024
1 parent 6847a53 commit e2a5f0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .config/nvim/lua/specs/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ Plugin.opts = {
enable = true,
additional_vim_regex_highlighting = false,
},
autotag = {
enable = true,
},
textobjects = {
select = {
enable = true,
Expand Down Expand Up @@ -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,
})
Expand Down

0 comments on commit e2a5f0f

Please sign in to comment.