diff --git a/.gitmodules b/.gitmodules index 4d4bf05..dbe48fa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -85,3 +85,6 @@ [submodule "vim/bundle/smartyank.nvim"] path = vim/bundle/smartyank.nvim url = https://github.com/ibhagwan/smartyank.nvim +[submodule "vim/bundle/vim-matchup"] + path = vim/bundle/vim-matchup + url = https://github.com/andymass/vim-matchup diff --git a/readme.md b/readme.md index 95b2f3a..1700c00 100644 --- a/readme.md +++ b/readme.md @@ -135,6 +135,7 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the * [tabular](https://github.com/godlygeek/tabular): Vim script for text filtering and alignment * [vim-fugitive](https://github.com/tpope/vim-fugitive): A wrapper integrating git into vim in such a way as to provide features neither of them could offer on their own * [vim-gutentags](https://github.com/xolox/vim-easytags): A plugin that takes care of the much needed management of tags files in Vim +* [vim-matchup](https://github.com/andymass/vim-matchup): A plugin that lets you highlight, navigate, and operate on sets of matching text * [vim-move](https://github.com/matze/vim-move): Provides a few convenient ways to move selected text * [vim-pathogen](https://github.com/tpope/vim-pathogen): A plugin to load other plugins while keeping them isolated in their own directory structure rather than all dumped together * [vim-polyglot-darkcloud](https://github.com/prurigro/vim-polyglot-darkcloud): The darkcloud-nvimconfig fork of a meta-package that attempts to provide the best syntax plugins for each file type diff --git a/vim/bundle/vim-matchup b/vim/bundle/vim-matchup new file mode 160000 index 0000000..1535a76 --- /dev/null +++ b/vim/bundle/vim-matchup @@ -0,0 +1 @@ +Subproject commit 1535a769d5dca851fe7d41b0be95f7c7203a4bef diff --git a/vim/config/plugins/nvim-treesitter.lua b/vim/config/plugins/nvim-treesitter.lua index 8b1bb6a..60fb802 100644 --- a/vim/config/plugins/nvim-treesitter.lua +++ b/vim/config/plugins/nvim-treesitter.lua @@ -21,6 +21,12 @@ if (vim.g.enabletreesitter == 1) then additional_vim_regex_highlighting = { "diff", "php", "scss" }, }, + -- vim-matchup + matchup = { + enable = true + }, + + -- nvim-treesitter-textobjects textobjects = { select = { enable = true, diff --git a/vim/config/plugins/vim-matchup.vim b/vim/config/plugins/vim-matchup.vim new file mode 100644 index 0000000..0f615a2 --- /dev/null +++ b/vim/config/plugins/vim-matchup.vim @@ -0,0 +1 @@ +let g:matchup_matchparen_offscreen = { 'method': '' }