diff --git a/.config/nvim/lua/goodhumored/plugins/auto-tags.lua b/.config/nvim/lua/goodhumored/plugins/auto-tags.lua new file mode 100644 index 0000000..2202d33 --- /dev/null +++ b/.config/nvim/lua/goodhumored/plugins/auto-tags.lua @@ -0,0 +1,24 @@ +-- ╭─────────────────────────────────────────────────────────╮ +-- │ nvim-ts-autotag │ +-- │ Use treesitter to autoclose and autorename html tag │ +-- │ https://github.com/windwp/nvim-ts-autotag │ +-- ╰─────────────────────────────────────────────────────────╯ +return { + "windwp/nvim-ts-autotag", + opts = { + opts = { + -- Defaults + enable_close = true, -- Auto close tags + enable_rename = true, -- Auto rename pairs of tags + enable_close_on_slash = false, -- Auto close on trailing ", "lua require('spider').motion('e')", mode = { "n", "o", "x" }, }, { - "w", + "", "lua require('spider').motion('w')", mode = { "n", "o", "x" }, }, { - "b", + "", "lua require('spider').motion('b')", mode = { "n", "o", "x" }, },