Skip to content

Commit 46ec82f

Browse files
authored
docs: improve lazy install snippet (#229)
1 parent f580992 commit 46ec82f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ PRs are welcomed for other git host websites!
7676
```lua
7777
require("lazy").setup({
7878
{
79-
'linrongbin16/gitlinker.nvim',
80-
config = function()
81-
require('gitlinker').setup()
82-
end,
83-
},
79+
"linrongbin16/gitlinker.nvim",
80+
cmd = "GitLink",
81+
opts = {},
82+
keys = {
83+
{ "<leader>gy", "<cmd>GitLink<cr>", desc = "Yank git link" },
84+
},
85+
}
8486
})
8587
```
8688

0 commit comments

Comments
 (0)