mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 15:37:22 +00:00
nvim: stylua
This commit is contained in:
parent
ef68202f77
commit
3959069934
1 changed files with 2 additions and 2 deletions
|
|
@ -184,9 +184,9 @@ vim.keymap.set('n', '<leader>l', '<C-i>', { desc = 'Go forward' })
|
||||||
-- Copy'n'Paste
|
-- Copy'n'Paste
|
||||||
vim.keymap.set('v', '<leader>y', '"+y', { desc = 'Copy selection to the system clipboard' })
|
vim.keymap.set('v', '<leader>y', '"+y', { desc = 'Copy selection to the system clipboard' })
|
||||||
vim.keymap.set('n', '<leader>y', function()
|
vim.keymap.set('n', '<leader>y', function()
|
||||||
local text = vim.fn.getreg('"')
|
local text = vim.fn.getreg '"'
|
||||||
vim.fn.system('xclip -i -selection clipboard', text)
|
vim.fn.system('xclip -i -selection clipboard', text)
|
||||||
print('Copied to system clipboard')
|
print 'Copied to system clipboard'
|
||||||
end, {
|
end, {
|
||||||
silent = true,
|
silent = true,
|
||||||
desc = 'Copy last yanked or deleted text to system clipboard via xclip',
|
desc = 'Copy last yanked or deleted text to system clipboard via xclip',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue