coc-yank
NeoclideYank extension for coc.nvim
Published Package Summary
coc-yank
Yank extension for coc.nvim.
Note, make sure you have TextYankPost autocmd with your vim by
:echo exists('##TextYankPost')
Install
In your vim/neovim, run command:
:CocInstall coc-yank
Setup keymap to open yank list like:
nnoremap <silent> <space>y :<C-u>CocList -A --normal yank<cr>
-A means auto preview, and --normal means open list on normal mode.
Features
- Highlight yanked text.
- Persist yank list across vim instances.
Options
yank.highlight.enableenable highlight feature, default:true.yank.highlight.durationduration of highlight in milliseconds, default: 500.yank.list.maxsizemaxsize of yank list, default: 200yank.enableCompletion: Enable completion support for yanked text, default:trueyank.priority: Priority of yank completion source, default: 90.yank.limit: Max completion item count from yank history.
F.A.Q
Q: How to change highlight color?
A: Add hi HighlightedyankRegion term=bold ctermbg=0 guibg=#13354A to your
.vimrc after :colorscheme command.
Q: How to clear all yanks?
A: In vim, :CocCommand yank.clean
License
MIT
- Yank extension for coc.nvim
- *
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-yank@1.2.5.
This package does not declare any contributed commands.
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "integer",
"default": 3,
"description": "Max completion item count from yank history."
}Raw JSON Schema
{
"type": "integer",
"default": 90,
"description": "Priority of yank completion source."
}Raw JSON Schema
{
"type": "number",
"default": 300,
"description": "Maximum size of preserved yank list."
}Raw JSON Schema
{
"type": "number",
"default": 10240,
"description": "Maximum byte length of yanked text which could be preserved."
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable completion support for yanked text."
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable highlight of yanked text."
}Raw JSON Schema
{
"type": "number",
"default": 500,
"description": "Duration of highlight in milliseconds."
}