diff --git a/.gitmodules b/.gitmodules index 861a623..4d4bf05 100644 --- a/.gitmodules +++ b/.gitmodules @@ -82,3 +82,6 @@ [submodule "vim/bundle/qf.nvim"] path = vim/bundle/qf.nvim url = https://github.com/ten3roberts/qf.nvim +[submodule "vim/bundle/smartyank.nvim"] + path = vim/bundle/smartyank.nvim + url = https://github.com/ibhagwan/smartyank.nvim diff --git a/readme.md b/readme.md index 2484ea8..137cae0 100644 --- a/readme.md +++ b/readme.md @@ -130,7 +130,8 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the * [nvim-surround](https://github.com/kylechui/nvim-surround): Add/change/delete surrounding delimiter pairs with ease * [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter): Treesitter configurations and abstraction layer for Neovim * [nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects): Syntax aware text-objects, select, move, swap, and peek support -* [qf.nvim](https://github.com/ten3roberts/qf.nvim): Extends the default quickfix and location lists for neovim +* [qf.nvim](https://github.com/ten3roberts/qf.nvim): Extends the default quickfix and location lists for neovim +* [smartyank.nvim](https://github.com/ibhagwan/smartyank.nvim): An opinionated (yet customizable) yank * [splitjoin.vim](https://github.com/AndrewRadev/splitjoin.vim): Simplifies the transition between multi-line and single-line code * [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 diff --git a/vim/bundle/smartyank.nvim b/vim/bundle/smartyank.nvim new file mode 160000 index 0000000..d9e078f --- /dev/null +++ b/vim/bundle/smartyank.nvim @@ -0,0 +1 @@ +Subproject commit d9e078fe08d6466e37ea45ac446a9f60e6866789 diff --git a/vim/config/plugins/smartyank.lua b/vim/config/plugins/smartyank.lua new file mode 100644 index 0000000..f9d06ae --- /dev/null +++ b/vim/config/plugins/smartyank.lua @@ -0,0 +1,22 @@ +require("smartyank").setup { + validate_yank = false, + + highlight = { + enabled = false, + }, + + clipboard = { + enabled = true, + }, + + tmux = { + enabled = true, + cmd = { "tmux", "set-buffer", "-w" }, + }, + + osc52 = { + enabled = true, + ssh_only = true, + silent = true, + }, +}