Skip to content

Commit

Permalink
docs: Add install instructions for lazy.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Sep 15, 2023
1 parent 8157b4c commit a0f6c21
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ let g:dbs = {
\ }
```

Configuration with [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
return {
'kristijanhusak/vim-dadbod-ui',
dependencies = {
{ 'tpope/vim-dadbod', lazy = true },
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql' }, lazy = true },
},
cmd = {
'DBUI',
'DBUIToggle',
'DBUIAddConnection',
'DBUIFindBuffer',
},
init = function()
-- Your DBUI configuration
vim.g.db_ui_use_nerd_fonts = 1
end,
}
```

After installation, run `:DBUI`, which should open up a drawer with all databases provided.
When you finish writing your query, just write the file (`:w`) and it will automatically execute the query for that database and it will automatically execute the query for selected database.

Expand Down

0 comments on commit a0f6c21

Please sign in to comment.