{"id":13525859,"url":"https://github.com/Nedra1998/nvim-mdlink","last_synced_at":"2025-04-01T05:32:32.649Z","repository":{"id":92966147,"uuid":"583773424","full_name":"Nedra1998/nvim-mdlink","owner":"Nedra1998","description":"Useful functionality for working with links in markdown","archived":false,"fork":false,"pushed_at":"2024-12-24T14:58:42.000Z","size":36,"stargazers_count":28,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-24T15:49:25.733Z","etag":null,"topics":["lua","neovim","nvim","nvim-cmp"],"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/Nedra1998.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-30T21:46:56.000Z","updated_at":"2024-12-24T14:58:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"feb897fa-0fdd-4a20-a78f-7d7dc350ed06","html_url":"https://github.com/Nedra1998/nvim-mdlink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedra1998%2Fnvim-mdlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedra1998%2Fnvim-mdlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedra1998%2Fnvim-mdlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedra1998%2Fnvim-mdlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nedra1998","download_url":"https://codeload.github.com/Nedra1998/nvim-mdlink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246591752,"owners_count":20801984,"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","nvim","nvim-cmp"],"created_at":"2024-08-01T06:01:22.907Z","updated_at":"2025-04-01T05:32:32.420Z","avatar_url":"https://github.com/Nedra1998.png","language":"Lua","readme":"# nvim-mdlink\n\n**nvim-mdlink** provides additional functionality when working with markdown\nlinks.\n\n## :sparkles: Features\n\n- Follow link under cursor\n- Create new link from selected text\n- Open links in the default browser\n- Open binary files in the system default application\n- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) markdown link completion integration\n\n## :zap: Requirements\n\n- [Neovim \u003e= **0.8.0**](https://github.com/neovim/neovim/wiki/Installing-Neovim)\n- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)\n  - [markdown](https://github.com/MDeiml/tree-sitter-markdown)\n  - [markdown-inline](https://github.com/MDeiml/tree-sitter-markdown)\n\n## :package: Installation\n\nInstall with [vim-plug](https://github.com/junegunn/vim-plug):\n\n```vim\nPlug 'Nedra1998/nvim-mdlink'\n```\n\nor with [packer.nvim](https://github.com/wbthomason/packer.nvim):\n\n```lua\nuse { 'Nedra1998/nvim-mdlink' }\n```\n\nor with [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{ 'Nedra1998/nvim-mdlink' }\n```\n\n## :gear: Configuration\n\n```lua\nrequire('nvim-mdlink').setup({\n  keymap = true,\n  cmp = true\n})\n```\n\nFor a complete list of available configuration options see [:help\nnvim-mdlink-configuration](https://github.com/Nedra1998/nvim-mdlink/blob/master/doc/nvim-mdlink.txt).\n\nEach option is documented in `:help nvim-mdlink.OPTION_NAME`.\n\n## :rocket: Usage\n\n### Keybinding\n\nSee [:help nvim-mdlink-mappings](https://github.com/Nedra1998/nvim-mdlink/blob/master/doc/nvim-mdlink.txt).\n\n| Keybinding | Description                                            |\n| ---------- | ------------------------------------------------------ |\n| `\u003cCR\u003e`     | Follow the link under the cursor, or create a new link |\n| `\u003cBS\u003e`     | After following a link, go back to the previous file   |\n\n### nvim-cmp Integration\n\n\nIf [nvim-mdlink.cmp](https://github.com/Nedra1998/nvim-mdlink/blob/master/doc/nvim-mdlink.txt)\nis `true`, then the `mdlink` completion source will be registered in nvim-cmp is available (i.e. if nvim-cmp has already been loaded by your plugin manager). If nvim-mdlink is loaded before nvim-cmp, then you will need to manually register the completion source in the configuration for nvim-cmp, by using the following snippet.\n\n```lua\nlocal has_mdlink, mdlink = pcall(require, \"nvim-mdlink.cmp\")\nif has_mdlink then\n  require('cmp').register_source(\"mdlink\", mdlink.new())\nend\n```\n\nThen you are able to make use the the mdlink completion source in your nvim-cmp configuration.\n\n```lua\nrequire('cmp').setup {\n  sources = {\n    { name = 'mdlink' }\n  }\n}\n```","funding_links":[],"categories":["Programming Languages Support"],"sub_categories":["Markdown and LaTeX"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNedra1998%2Fnvim-mdlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNedra1998%2Fnvim-mdlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNedra1998%2Fnvim-mdlink/lists"}