wget https://raw.githubusercontent.com/lotabout/dotfiles/master/bin/clipboard-provider
sudo mv clipboard-provider /usr/bin/
sudo chmod +x /usr/bin/clipboard-provider
vim.opt.clipboard:append("unnamedplus")
-- Check if clipboard-provider is executable
if vim.fn.executable('clipboard-provider') then
-- Set clipboard configuration
vim.g.clipboard = {
name = 'myClipboard',
copy = {
['+'] = 'clipboard-provider copy',
['*'] = 'clipboard-provider copy',
},
paste = {
['+'] = 'clipboard-provider paste',
['*'] = 'clipboard-provider paste',
},
}
end