nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Disable Copy to system clipboard

kevintraver opened this issue · comments

It would be nice to have the ability to disable yanking to the + register.

commented

not sure how to do this, maybe you could make a PR if you can :)

Could probably be something like this:

  if config.use_system_clipboard then
    vim.fn.setreg('+', content);
    vim.fn.setreg('*', content);
  end

I'm not exactly how to sure load the config options in fs.lua

commented

Could you write a little function of your own in your config and port it here ?

Hi!
I've provide #1141 to solve this. If there's any question please ask!

commented

closed in #1141