kristijanhusak / vim-dadbod-ui

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

fix(notifications): use `vim.log.levels` #285

Closed phrmendes closed 1 week ago

phrmendes commented 1 week ago

Fix: Use accepted vim.log.levels values for native Neovim notifications

I encountered an issue with mini.notify:

Error detected while processing function <SNR>79_method[2]..60[30]..63[7]..34[16]..function <SNR>79_method[2]..60[30]..63[7]..34[15]..db_ui#notifications#error[1]..<SNR>83_notification[11]. .<SNR>83_notification_nvim_notify: line 7: E5108: Error executing lua (mini.notify) Only valid values of vim.log.levels are supported. stack traceback: [C]: in function 'error' ...ack/myNeovimPackages/start/mini.nvim/lua/mini/notify.lua:839: in function 'error' ...ack/myNeovimPackages/start/mini.nvim/lua/mini/notify.lua:305: in function 'notify' [string "luaeval()"]:1: in main chunk

The error was caused by mini.notify not using accepted values from vim.log.levels for vim.notify. After applying these changes, native Neovim notifications now work as expected.