diff options
author | Minijackson <minijackson@riseup.net> | 2021-05-28 19:01:05 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-05-28 19:01:05 +0200 |
commit | 906e4bf006317e53f407910ff1b089795060a1a1 (patch) | |
tree | e163e13034d13388cc809c6f98e3c5a7bccc29d5 | |
parent | 7b56fcf4c4bf95f763162a69e69290cb0c78bf9f (diff) | |
download | nixos-config-reborn-906e4bf006317e53f407910ff1b089795060a1a1.tar.gz nixos-config-reborn-906e4bf006317e53f407910ff1b089795060a1a1.zip |
vim: add vim-oscyank
-rw-r--r-- | common/vim.nix | 1 | ||||
-rw-r--r-- | dotfiles/vim.lua | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/common/vim.nix b/common/vim.nix index ec43738..8a27b06 100644 --- a/common/vim.nix +++ b/common/vim.nix | |||
@@ -93,6 +93,7 @@ let | |||
93 | vim-unimpaired | 93 | vim-unimpaired |
94 | tabular | 94 | tabular |
95 | vim-abolish | 95 | vim-abolish |
96 | vim-oscyank | ||
96 | ] ++ config.vim.extraPlugins; | 97 | ] ++ config.vim.extraPlugins; |
97 | }; | 98 | }; |
98 | }; | 99 | }; |
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index ff29d30..27fa722 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua | |||
@@ -221,3 +221,9 @@ require("lualine").setup { | |||
221 | -- Snippets.nvim | 221 | -- Snippets.nvim |
222 | 222 | ||
223 | require("snippets").use_suggested_mappings() | 223 | require("snippets").use_suggested_mappings() |
224 | |||
225 | -- OSCyank | ||
226 | |||
227 | -- Text yanked into the "t register gets copied using OSC52 escape sequences | ||
228 | -- (e.g. goes through SSH) | ||
229 | vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif" | ||