You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I think that the use of variables g:db_ui_* (for config) & g:dbui_* (in the plugin) are misleading, what I mean is that when I look at the source code of the plugin and find a g: variable, and I try to override it in my config, it does nothing.
For example, I wanted to disable to execution on write. Since I didn't see the option documented in the top readme (and didn't thought at checking the :h pages at that time, and went to check the source code and found
which takes its value from g:db_ui_execute_on_save instead.
Why did you do this distinction? Would it be possible to keep a single source of truth, and maybe change all g:dbui_* to g:db_ui_* with default if they are not already set?
The text was updated successfully, but these errors were encountered:
g:db_ui vars are for the user to change, where g:dbui is for internal purposes. I think I had some issues with tests or something, can't really remember at this moment.
I agree it's a bit misleading, but didn't really think about it since I presume that who checks the source code, can figure it out :)
Hello,
I think that the use of variables
g:db_ui_*
(for config) &g:dbui_*
(in the plugin) are misleading, what I mean is that when I look at the source code of the plugin and find a g: variable, and I try to override it in my config, it does nothing.For example, I wanted to disable to execution on write. Since I didn't see the option documented in the top readme (and didn't thought at checking the
:h
pages at that time, and went to check the source code and foundvim-dadbod-ui/autoload/db_ui/query.vim
Lines 184 to 186 in ed73c98
So I figured that setting
g:dbui_execute_on_save
to v:false (or 0) would disable this behavior.Unfortunately, that variable is overwritten by
vim-dadbod-ui/plugin/db_ui.vim
Line 19 in a0045ae
which takes its value from
g:db_ui_execute_on_save
instead.Why did you do this distinction? Would it be possible to keep a single source of truth, and maybe change all
g:dbui_*
tog:db_ui_*
with default if they are not already set?The text was updated successfully, but these errors were encountered: