Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/IlyasYOY/git-link.nvim
Plugin to generate links to Git repositories in NeoVim.
https://github.com/IlyasYOY/git-link.nvim
git lua neovim nvim nvim-plugin
Last synced: 3 months ago
JSON representation
Plugin to generate links to Git repositories in NeoVim.
- Host: GitHub
- URL: https://github.com/IlyasYOY/git-link.nvim
- Owner: IlyasYOY
- License: apache-2.0
- Created: 2023-01-23T17:50:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T17:30:24.000Z (5 months ago)
- Last Synced: 2024-06-23T00:48:57.343Z (5 months ago)
- Topics: git, lua, neovim, nvim, nvim-plugin
- Language: Lua
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-link.nvim
Plugin to generate links for remote repositories.
## Status
Project is currently in WIP status.
## Installation
Installation using [wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim):
```lua
use {
"Ilyasyoy/coredor.nvim", -- dependency with utilities
"Ilyasyoy/git-link.nvim",
}
```This plugin requires: [IlyasYOY/coredor.nvim](https://github.com/IlyasYOY/coredor.nvim).
## Example configuration
Put the code inside `init.lua`:
```lua
local git_link = require "git-link"vim.api.nvim_create_user_command("GitRemoteCopyRepoLink", function()
git_link.copy_repo_link()
end, {
desc = "Copies a link to currently working repository into the clipboard",
})vim.api.nvim_create_user_command("GitRemoteCopyRepoLinkToFile", function()
git_link.copy_repo_link_to_file()
end, {
desc = "Copies a link to currently working file into the clipboard",
})vim.api.nvim_create_user_command("GitRemoteCopyRepoLinkToLine", function()
git_link.copy_repo_link_to_line()
end, {
desc = "Copies a link to currently working line into the clipboard",
})
```