diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-03-21 20:43:34 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-03-21 20:43:34 +0000 |
commit | f8f6e1566e539b42d70380c02ea18a61fa4f41e9 (patch) | |
tree | 53ebe470bc34fb46082744618bb70ace650204c9 /.config/nvim/lua/general.lua | |
parent | 1edbf138199402af0ae8b0953558ce0e689f61b2 (diff) | |
download | dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar.gz dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar.bz2 dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar.lz dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar.xz dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.tar.zst dotfiles-f8f6e1566e539b42d70380c02ea18a61fa4f41e9.zip |
Add light theme to neovim and tmux clipboard on
Diffstat (limited to '.config/nvim/lua/general.lua')
-rw-r--r-- | .config/nvim/lua/general.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua index 8864a2e..f50f538 100644 --- a/.config/nvim/lua/general.lua +++ b/.config/nvim/lua/general.lua @@ -55,5 +55,13 @@ if vim.fn.has("wsl") == 1 then group = vim.api.nvim_create_augroup("Yank", { clear = true }); callback = function() vim.fn.system("clip.exe", vim.fn.getreg("\"")) end; }) +else + vim.api.nvim_create_autocmd('TextYankPost', { + callback = function() + if vim.v.event.operator == 'y' and vim.v.event.regname == '+' then + require('osc52').copy_register('+') + end + end + }) end |