Skip to content

Commit

Permalink
docs(README): installation instructions for lazy.nvim (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaem authored Mar 19, 2024
1 parent 13888eb commit edfa93f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ Plug 'rcarriga/nvim-dap-ui'
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"} }
```

[**lazy.nvim**](https://github.com/folke/lazy.nvim)

```lua
{ "rcarriga/nvim-dap-ui", dependencies = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"} }
```

It is highly recommended to use [neodev.nvim](https://github.com/folke/neodev.nvim) to enable type checking for nvim-dap-ui to get
type checking, documentation and autocompletion for all API functions.

Expand Down

1 comment on commit edfa93f

@shmerl
Copy link

@shmerl shmerl commented on edfa93f Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is useful to anyone, not sure if that's strictly the correct way to specify dependencies. The way I do it it the opposite, i.e. make nvim-dap depend on nvim dap ui. Something like this in my case (you can disregard some init calls). DapUiToggle is also my defined command:

  { 'mfussenegger/nvim-dap',
    dependencies = {
      { 'rcarriga/nvim-dap-ui',
        dependencies = {
          'nvim-neotest/nvim-nio',
	}
      }
    },
    cmd = { 'DapUiToggle', 'DapToggleBreakpoint' },
    config = function()
      require('debug/init')
    end
  }

Please sign in to comment.