Skip to content

Commit c5e8735

Browse files
author
zhangfuwen
committed
update readme
1 parent fae923d commit c5e8735

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,32 @@ end, { desc = "New github repo", buffer = bufnr })
2424

2525
```
2626

27+
for those who are using lazy to manage plugins:
28+
29+
```lua
30+
{
31+
'zhangfuwen/github.nvim',
32+
config = function()
33+
local github_nvim = require("github_nvim")
34+
github_nvim.setup({})
35+
require('telescope').load_extension('github_repos')
36+
37+
vim.keymap.set("n", "<leader>ghr", function()
38+
vim.cmd("Telescope github_repos")
39+
end, { desc = "List github repos", buffer = bufnr })
40+
41+
vim.keymap.set("n", "<leader>ghc", function()
42+
require("github_nvim").clone()
43+
end, { desc = "Clone a github repo", buffer = bufnr })
44+
45+
vim.keymap.set("n", "<leader>ghn", function()
46+
require("github_nvim").create()
47+
end, { desc = "New github repo", buffer = bufnr })
48+
end
49+
},
50+
51+
```
52+
2753
## Format
2854

2955
The CI uses `stylua` to format the code; customize the formatting by editing `.stylua.toml`.

0 commit comments

Comments
 (0)