kristijanhusak / vim-dadbod-ui

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

Using nvim-notify #191

Closed zyriab closed 1 year ago

zyriab commented 1 year ago

Hi there, thanks for this great plugin :) I was wondering if there was a way to pipe the notifications to nvim-notify instead of using the plugin's default notifications UI?

Cheers

kristijanhusak commented 1 year ago

This is something I planned to add, So I'll consider this as enhancement issue.

kristijanhusak commented 1 year ago

This is now implemented. To use it add this to your configuration:

let g:db_ui_use_nvim_notify = 1

Note that it's using Neovim's vim.notify API, so in order to use nvim-notify plugin you need to assign it to vim.notify as they suggest in their docs

zyriab commented 1 year ago

You da man

andres-lowrie commented 7 months ago

for future search engine travelers.

As mentioned by kristijanhusak, assigning the plugin to vim-notify means putting this in your neovim config

vim.notify = require('notify')

Here's an example on how to do that if you're using lazy

  {
    'rcarriga/nvim-notify',
    config = function()
      vim.notify = require('notify')
    end
  },