neovim/runtime/autoload/provider
Tim Morgan d8316f2a1b clipboard: Always copy as plain text in Wayland #9737
`wl-copy` by default tries to determine the mime type of a copied bit of
text. From the [readme](https://github.com/bugaevc/wl-clipboard):

> wl-copy automatically infers the type of the copied content by running
> xdg-mime(1) on it.

So copying a Ruby script from Nvim may store it in the Wayland clipboard
as mime-type `application/x-ruby`.

This is a small reproduction without Nvim:

    $ cat test.rb
    #!/usr/bin/env ruby
    puts 'hello world'
    $ cat test.rb | wl-copy
    $ wl-paste --list-types
    application/x-ruby

This commit fixes that by telling wl-copy that all text copied from
Nvim has the mime type `text/plain`.

    $ cat test.rb | wl-copy --type text/plain
    $ wl-paste --list-types
    text/plain;charset=utf-8
2019-03-16 22:55:24 +01:00
..
clipboard.vim clipboard: Always copy as plain text in Wayland #9737 2019-03-16 22:55:24 +01:00
node.vim provider/lang: expand() g:foo_host_prog (#9312) 2018-12-05 00:11:28 +01:00
python3.vim provider/nodejs: check version in Detect() 2017-12-17 16:09:18 +01:00
python.vim provider/nodejs: check version in Detect() 2017-12-17 16:09:18 +01:00
pythonx.vim health/pythonx: handle "pip upgrade failure" 2019-01-07 23:29:46 +01:00
ruby.vim provider/lang: expand() g:foo_host_prog (#9312) 2018-12-05 00:11:28 +01:00
script_host.rb Make script_host.rb rubocop-clean 2017-05-03 22:24:51 +02:00