Skip to content

Commit

Permalink
feat: simplify lazy setup with lazy.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
topaxi committed Jun 25, 2024
1 parent dd56677 commit 2bc7957
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
'topaxi/gh-actions.nvim',
cmd = 'GhActions',
keys = {
{ '<leader>gh', '<cmd>GhActions<cr>', desc = 'Open Github Actions' },
},
-- optional, you can also install and use `yq` instead.
build = 'make',
dependencies = { 'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim' },
---@type GhActionsConfig
opts = {},
config = function(_, opts)
require('gh-actions').setup(opts)
end,
},
```

Expand Down
11 changes: 11 additions & 0 deletions lazy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return {
{ 'nvim-lua/plenary.nvim', lazy = true },
{ 'MunifTanjim/nui.nvim', lazy = true },
{
'topaxi/gh-actions.nvim',
cmd = 'GhActions',
lazy = true,
dependencies = { 'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim' },
opts = {},
},
}

0 comments on commit 2bc7957

Please sign in to comment.