Open ColinKennedy opened 7 months ago
Nvim clipboard performance (the "+
register) depends on how you have defined g:clipboard
. It's common for that to involve powershell in WSL.
I'm using Wezterm + cmd, should I switch to a different terminal / shell?
When I use
[p
, it is fast. But if I get from the"+
register,[p
and]p
are slow.OS: Windows 10 Terminal: Wezterm Shell: WSL (Ubuntu 20.02) Neovim version:
nvim -u reproduction.lua
```lua -- DO NOT change the paths and don't remove the colorscheme local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { -- Adds pair mappings (like ]l [l) to Vim { "tpope/vim-unimpaired", version = "2.*", }, } require("lazy").setup(plugins, { root = root .. "/plugins", }) vim.cmd[[set laststatus=3]] ```"+yy
to copy it"+[p
If you copy it to a different register and paste, it's normal speed (fast)
I did a
profile file * | profile func *
and 0.5 seconds are devoted to this chunk of code