Skip to content

Instantly share code, notes, and snippets.

@wey-gu
Created December 26, 2023 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wey-gu/8d8e66af48d7193c78e0724b770a6477 to your computer and use it in GitHub Desktop.
Save wey-gu/8d8e66af48d7193c78e0724b770a6477 to your computer and use it in GitHub Desktop.
NeoVim Clipboard configuration for ChromeOS terminal
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment