https://github.com/chrisgrieser/cmp_yanky
cmp-source for clipboard history from yanky.nvim
https://github.com/chrisgrieser/cmp_yanky
clipboard-history completion nvim-cmp nvim-plugin
Last synced: 7 months ago
JSON representation
cmp-source for clipboard history from yanky.nvim
- Host: GitHub
- URL: https://github.com/chrisgrieser/cmp_yanky
- Owner: chrisgrieser
- License: mit
- Created: 2023-11-02T11:38:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T16:07:35.000Z (11 months ago)
- Last Synced: 2025-03-08T21:38:43.108Z (7 months ago)
- Topics: clipboard-history, completion, nvim-cmp, nvim-plugin
- Language: Lua
- Homepage:
- Size: 28.3 KB
- Stars: 47
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# cmp_yanky
[cmp-source](https://github.com/hrsh7th/nvim-cmp) for yank history (clipboard
history) from [yanky.nvim](https://github.com/gbprod/yanky.nvim).
## Installation
```lua
-- lazy.nvim
{
"hrsh7th/nvim-cmp",
dependencies = {
-- ... other cmp plugins
"chrisgrieser/cmp_yanky",
}
},
``````lua
require("cmp").setup {
sources = {
{
name = "cmp_yanky",
option = {
-- see below
}
},
},
}
```## Configuration
```lua
-- default values
{
name = "cmp_yanky",
option = {
-- only suggest items which match the current filetype
onlyCurrentFiletype = false,
-- only suggest items with a minimum length
minLength = 3,
},
}
```The number of possible items to be suggested depends on the size of the
history. You can change the history size with `yanky`'s [ring.history_length
option](https://github.com/gbprod/yanky.nvim#ringhistory_length).## Credits
In my day job, I am a sociologist studying the social mechanisms underlying the
digital economy. For my PhD project, I investigate the governance of the app
economy and how software ecosystems manage the tension between innovation and
compatibility. If you are interested in this subject, feel free to get in touch.I also occasionally blog about vim: [Nano Tips for Vim](https://nanotipsforvim.prose.sh)
- [Academic Website](https://chris-grieser.de/)
- [Mastodon](https://pkm.social/@pseudometa)
- [ResearchGate](https://www.researchgate.net/profile/Christopher-Grieser)
- [LinkedIn](https://www.linkedin.com/in/christopher-grieser-ba693b17a/)