kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Added DBUIQuit command #156

Closed bgfxc4 closed 1 year ago

bgfxc4 commented 1 year ago

Added the command, because I want to be able to close the DBUI when opening nvim-tree to only have one sidebar opened.

kristijanhusak commented 1 year ago

Thanks!

ueaner commented 1 year ago

Added the command, because I want to be able to close the DBUI when opening nvim-tree to only have one sidebar opened.

Looking forward to your works. I have a question, do I need to check if dbui is open?

kristijanhusak commented 1 year ago

Added the command, because I want to be able to close the DBUI when opening nvim-tree to only have one sidebar opened.

Looking forward to your works. I have a question, do I need to check if dbui is open?

There's no need for that.

ueaner commented 1 year ago

do I need to check if dbui is open?

There's no need for that.

Thank you for your reply. I made an implementation based on the open state of dbui.

https://github.com/ueaner/nvimrc/blob/0c75033f981f4e171c6b87550bc186bffaaef6e7/lua/utils.lua#L76-L119

Am I missing something? Can you share your approach?