Skip to content

Commit

Permalink
docs: installation instructions for lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 22, 2023
1 parent 2173dff commit f13f5e3
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions README.md
Expand Up @@ -34,36 +34,17 @@ A pretty list for showing diagnostics, references, telescope results, quickfix a

Install the plugin with your preferred package manager:

### [vim-plug](https://github.com/junegunn/vim-plug)

```vim
" Vim Script
Plug 'nvim-tree/nvim-web-devicons'
Plug 'folke/trouble.nvim'
lua << EOF
require("trouble").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
EOF
```

### [packer](https://github.com/wbthomason/packer.nvim)
### [lazy.nvim](https://github.com/folke/lazy.nvim)

```lua
-- Lua
use {
"folke/trouble.nvim",
requires = "nvim-tree/nvim-web-devicons",
config = function()
require("trouble").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
end
return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
}
```

Expand Down

0 comments on commit f13f5e3

Please sign in to comment.