aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/general.lua
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-03-21 20:43:34 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-03-21 20:43:34 +0000
commitf8f6e1566e539b42d70380c02ea18a61fa4f41e9 (patch)
tree53ebe470bc34fb46082744618bb70ace650204c9 /.config/nvim/lua/general.lua
parent1edbf138199402af0ae8b0953558ce0e689f61b2 (diff)
downloaddotfiles-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.lua8
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