chore: update readme.md
This commit is contained in:
parent
3e11278c64
commit
5493b53a1b
1 changed files with 37 additions and 5 deletions
42
README.md
42
README.md
|
|
@ -1,14 +1,46 @@
|
|||
# Open in github for neovim written in lua (WIP)
|
||||
# openingh.nvim :octocat:
|
||||
Opens the current project or file page in GitHub.
|
||||
- Features
|
||||
- Supports MacOS, Linux, and maybe Windows 🤷♂️
|
||||
- Works with detaches HEAD and support checked out branches
|
||||
- Automatically selects the correct line number in the file page
|
||||
|
||||
## Install
|
||||
## Requirements
|
||||
|
||||
- Neovim 0.7.2+
|
||||
|
||||
## Installation
|
||||
|
||||
[packer](https://github.com/wbthomason/packer.nvim)
|
||||
|
||||
```lua
|
||||
use "almo7aya/neogruvbox.nvim"
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
- `:OpenInGHRepo`
|
||||
- Opens the git repository page in github.com
|
||||
- Opens the project's git repository page in GitHub.
|
||||
|
||||
- `:OpenInGHFile`
|
||||
- Opens the file page in github.com
|
||||
- Opens the current file page in GitHub.
|
||||
|
||||
## Contributions
|
||||
## Usage
|
||||
|
||||
You can call the commands directly or define mappings them:
|
||||
|
||||
```lua
|
||||
-- for repository page
|
||||
vim.api.nvim_set_keymap("n", "<Leader>gr", ":OpenInGHRepo <CR>", { expr = true, noremap = true })
|
||||
|
||||
-- for current file page
|
||||
vim.api.nvim_set_keymap("n", "<Leader>gf", ":OpenInGHFile <CR>", { expr = true, noremap = true })
|
||||
```
|
||||
|
||||
## TODO
|
||||
- [x] Support the current file cursor position
|
||||
- [ ] Support visual mode to open a file in range selection
|
||||
|
||||
## License
|
||||
[MIT](./LICENSE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue