{"id":25059594,"url":"https://github.com/lnus/fencey.nvim","last_synced_at":"2026-04-30T07:37:04.933Z","repository":{"id":276084184,"uuid":"928074768","full_name":"lnus/fencey.nvim","owner":"lnus","description":"Yank text as fenced code blocks","archived":false,"fork":false,"pushed_at":"2025-02-06T06:53:47.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T07:32:27.663Z","etag":null,"topics":["lua","neovim","neovim-lua","neovim-plugin","nvim"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T02:38:21.000Z","updated_at":"2025-02-06T06:53:50.000Z","dependencies_parsed_at":"2025-02-06T07:32:30.379Z","dependency_job_id":"db45a84c-5656-49a9-95ae-69409a134d1c","html_url":"https://github.com/lnus/fencey.nvim","commit_stats":null,"previous_names":["lnus/fencey.nvim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Ffencey.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Ffencey.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Ffencey.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Ffencey.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnus","download_url":"https://codeload.github.com/lnus/fencey.nvim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246454409,"owners_count":20780132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","neovim","neovim-lua","neovim-plugin","nvim"],"created_at":"2025-02-06T15:35:30.359Z","updated_at":"2026-04-30T07:37:04.904Z","avatar_url":"https://github.com/lnus.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fencey.nvim\n\n![Fencey Demo](https://github.com/user-attachments/assets/57900642-e61f-4ffd-a6d3-0507547942d5)\n\n## Features\n\n- Yank text as a code block\n- Do it again, _if you want to_\n\n\u003e Couldn't this just have been a gist with an autocommand?!\n\nYes, but this is cooler.\n\nFeel free to repurpose the code as an autocommand if you want,\nbut I have added some _niceties_ that make this easier to use.\n\n## Usage\n\n`fencey.nvim` provides one command:\n\n- `:FenceYank` puts you into fence yank mode\n\nI recommend keybinding this to something reasonable, see [example config](#example-configuration).\n\n## Installation\n\n1. Install via your favorite package manager\n\n```lua\n-- lazy.nvim\n{\n    'lnus/fencey.nvim',\n    opts = {},\n},\n```\n\n2. Setup the plugin in your `init.lua`\n\n**NOT** needed with `lazy.nvim` if `opts` is set, like above\n\n```lua\nrequire('fencey').setup()\n```\n\n## Configuration\n\nThe default configuration is very barebones.\n\n```lua\n{\n    verbose = false, -- Log more often\n    register = '+', -- Which register to store yank in\n    virtual_text = {\n        content = '[FY]', -- Virtual text content\n        hl_group = 'DiagnosticVirtualTextInfo', -- Which highlight group to use\n    },\n}\n```\n\n### Example configuration\n\n\u003e Make sure to understand `cmd` and `keys` from [lazy.nvim](https://lazy.folke.io/spec/examples)\n\nWith `lazy.nvim` a config might look like this:\n\n```lua\n{\n    'lnus/fencey.nvim',\n    opts = {\n        verbose = false,\n        register = '+',\n        virtual_text = {\n            content = '[FenceY]',\n            hl_group = 'Comment',\n        },\n    },\n    cmd = { 'FenceYank' },\n    keys = {\n      { '\u003cleader\u003efy', '\u003ccmd\u003eFenceYank\u003ccr\u003e', desc = '[F]ence [Y]ank' },\n    },\n},\n```\n\nOr a more explicit, not lazy loaded configuration:\n\n```lua\n{\n    'lnus/fencey.nvim',\n    config = function()\n        vim.api.nvim_set_hl(0, 'AwesomeHighlight', { fg = '#FF0FF0', italic = true })\n        vim.keymap.set('n', '\u003cleader\u003eyf', '\u003ccmd\u003eFenceYank\u003ccr\u003e', { desc = '[Y]ank [F]ence' })\n\n        require('fencey').setup {\n            verbose = false,\n            register = '+',\n            virtual_text = {\n                content = '[Yanking Fence]',\n                hl_group = 'AwesomeHighlight',\n            },\n        }\n    end,\n},\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnus%2Ffencey.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnus%2Ffencey.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnus%2Ffencey.nvim/lists"}