yank into unnamedplus register always if in ssh
This commit is contained in:
parent
480d650e11
commit
dcaad68136
|
@ -1,5 +1,4 @@
|
||||||
-- Set <space> as the leader key
|
-- Set <space> as the leader key
|
||||||
-- Set <space> as the leader key
|
|
||||||
-- See `:help mapleader`
|
-- See `:help mapleader`
|
||||||
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
|
@ -34,15 +33,16 @@ if os.getenv 'SSH_CLIENT' then
|
||||||
copy = {
|
copy = {
|
||||||
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
||||||
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
||||||
|
['unnamedplus'] = require('vim.ui.clipboard.osc52').copy 'unnamedplus',
|
||||||
},
|
},
|
||||||
paste = {
|
paste = {
|
||||||
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
||||||
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
||||||
|
['unnamedplus'] = require('vim.ui.clipboard.osc52').copy 'unnamedplus',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
else
|
|
||||||
vim.opt.clipboard = 'unnamedplus'
|
|
||||||
end
|
end
|
||||||
|
vim.opt.clipboard = 'unnamedplus'
|
||||||
|
|
||||||
-- Enable break indent
|
-- Enable break indent
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
|
|
Loading…
Reference in New Issue