From 56c07f0ff511d024e4ffea417fef480fa0b5b657 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 10 Sep 2026 22:19:24 +0200 Subject: Add treesitter + auto-pairs/auto-tag-closing to Neovim config Not part of the original vimrc (no auto-pairs plugin existed there) - added per request for PyCharm-like brace/quote/HTML-tag auto-closing. - nvim-treesitter (main branch, the current rewrite) with parsers for the languages already covered by the LSP/plugin setup, plus highlighting enabled generically via vim.treesitter.start() on FileType (a no-op, caught by pcall, for filetypes without a parser). - nvim-autopairs for bracket/quote auto-closing. - nvim-ts-autotag (treesitter-based) for HTML/JSX/similar tag auto-closing and renaming. --- neovim/.config/nvim/lua/plugins/autopairs.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 neovim/.config/nvim/lua/plugins/autopairs.lua (limited to 'neovim/.config/nvim/lua/plugins/autopairs.lua') diff --git a/neovim/.config/nvim/lua/plugins/autopairs.lua b/neovim/.config/nvim/lua/plugins/autopairs.lua new file mode 100644 index 0000000..877e570 --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/autopairs.lua @@ -0,0 +1,23 @@ +return { + { + "windwp/nvim-autopairs", + event = "InsertEnter", + opts = {}, + }, + { + "windwp/nvim-ts-autotag", + ft = { + "html", + "xml", + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "svelte", + "php", + }, + dependencies = { "nvim-treesitter/nvim-treesitter" }, + opts = {}, + }, +} -- cgit v1.3