From 56c2a1b3aa1470d34e0f90540fa732758b63e1da Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 14 Jul 2024 15:11:08 -0500 Subject: [PATCH] refactor(nvim): move `nvim-ts-autotag` to separate file --- .../.config/nvim/lua/plugins/configs/treesitter.lua | 13 ------------- .../.config/nvim/lua/plugins/configs/ts_autotag.lua | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 users/price/dots/.config/nvim/lua/plugins/configs/ts_autotag.lua diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 5e1865ab..80cf8f1c 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -24,19 +24,6 @@ return { }, }, }, - { - "nvim-treesitter/nvim-treesitter-context", - event = { "BufReadPre", "BufNewFile" }, - dependencies = { - "nvim-treesitter/nvim-treesitter", - }, - config = function() - require("treesitter-context").setup({ - max_lines = 3, - }) - vim.cmd.TSContextEnable() - end, - }, { "windwp/nvim-ts-autotag", dependencies = { "nvim-treesitter/nvim-treesitter" }, diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/ts_autotag.lua b/users/price/dots/.config/nvim/lua/plugins/configs/ts_autotag.lua new file mode 100644 index 00000000..29b03f13 --- /dev/null +++ b/users/price/dots/.config/nvim/lua/plugins/configs/ts_autotag.lua @@ -0,0 +1,13 @@ +return { + { + "windwp/nvim-ts-autotag", + event = { "BufReadPre", "BufNewFile" }, + config = function() + require("nvim-ts-autotag").setup({ + opts = { + enable_close_on_slash = true, + }, + }) + end, + }, +}