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
Very niche problem, so thanks in advance for even considering 😅 .
I rely on list-mode characters a fair bit to avoid invisible errant whitespace but DBUI query files setlocal nolist, which I couldn't override with a after/ftplugin/mysql.lua file.
Was this a deliberate choice?
If so, would you please consider allowing the override of some of these options 🙏 ?
To reproduce
Create after/ftplugin/mysql.vim.
setlocallist
Open a DBUI query file.
Check that list is disabled.
verbosesetlist?
" nolist" Last set from ~/.local/share/nvim/site/pack/ssraicangu/opt/dadbod_ui/autoload/db_ui/query.vim line 170
This allows filetype plugins, such as `mysql.vim`, to override any of
the special query buffer settings if needed.
A similar pattern of setting `filetype` before other settings is present
for the DBUI drawer. I assume this is more deliberate, and is out of
scope for kristijanhusak#267, so I haven't changed this
part.
This change was not signed off, so might be reverted.
BREAKING-CHANGE: Options set in filetype plugins are now preferred for
query buffers.
Link: https://github.com/kristijanhusak/vim-dadbod-ui/blob/0f51d8de368c8c6220973e8acd156d17da746f4c/autoload/db_ui/drawer.vim?plain=1#L38
Description
Very niche problem, so thanks in advance for even considering 😅 .
I rely on
list
-mode characters a fair bit to avoid invisible errant whitespace but DBUI query filessetlocal nolist
, which I couldn't override with aafter/ftplugin/mysql.lua
file.To reproduce
after/ftplugin/mysql.vim
.list
is disabled.Setup
vim-dadbod-ui
: 0f51d8d (Merge pull request 263 from ArkadyBuryakov/master, 2024-07-22).Checklist
list is:issue
andftplugin is:issue
git-blame
: 310e57e (Adding initial files., 2020-03-20).Possible solution
Ref 1. Setting
filetype
afternolist
seems to load the preference from the ftplugin file.I'm open to creating a pull request, if desired 🙂 .
The text was updated successfully, but these errors were encountered: