diff options
| author | 2026-09-10 22:19:24 +0200 | |
|---|---|---|
| committer | 2026-09-10 22:19:24 +0200 | |
| commit | 56c07f0ff511d024e4ffea417fef480fa0b5b657 (patch) | |
| tree | 78fe96312309fb5e9a5de0da0f5ee658e11eed80 /neovim/.config/nvim/lua/plugins/autopairs.lua | |
| parent | d7f52c9aaee49f62f9e3a2a410ca21eb5e4b1649 (diff) | |
| download | dotfiles-56c07f0ff511d024e4ffea417fef480fa0b5b657.tar.gz dotfiles-56c07f0ff511d024e4ffea417fef480fa0b5b657.tar.bz2 dotfiles-56c07f0ff511d024e4ffea417fef480fa0b5b657.zip | |
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.
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/autopairs.lua')
| -rw-r--r-- | neovim/.config/nvim/lua/plugins/autopairs.lua | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
| 1 | return { | ||
| 2 | { | ||
| 3 | "windwp/nvim-autopairs", | ||
| 4 | event = "InsertEnter", | ||
| 5 | opts = {}, | ||
| 6 | }, | ||
| 7 | { | ||
| 8 | "windwp/nvim-ts-autotag", | ||
| 9 | ft = { | ||
| 10 | "html", | ||
| 11 | "xml", | ||
| 12 | "javascript", | ||
| 13 | "javascriptreact", | ||
| 14 | "typescript", | ||
| 15 | "typescriptreact", | ||
| 16 | "vue", | ||
| 17 | "svelte", | ||
| 18 | "php", | ||
| 19 | }, | ||
| 20 | dependencies = { "nvim-treesitter/nvim-treesitter" }, | ||
| 21 | opts = {}, | ||
| 22 | }, | ||
| 23 | } | ||
