Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change only some icons and a config to override expanded/collapse icon #34

Closed
petobens opened this issue May 17, 2020 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@petobens
Copy link

Hi. I want to change the expanded/ collapse icon (i.e the open/close) triangle. I tried adding:

let g:db_ui_icons = {
    \ 'collapsed' : {
        \ 'db': ' ',
    \ },
\ }

but then when running :DBUI I get

Error detected while processing function <SNR>196_method[2]..115[27]..110[31]..113[30]..124:
line    5:
E716: Key not present in Dictionary: saved_queries
E15: Invalid expression: g:dbui_icons.collapsed[a:type]

Is it possible to override a single icon? Also is it possible to add options to override the expanded/ collapsed icons in general rather than having to manually override each pair of expanded/collapsed + db/buffers, etc? Something like:

let g:db_ui_expanded_collapsed = ['foo', 'bar']
@kristijanhusak kristijanhusak added the enhancement New feature or request label May 17, 2020
@kristijanhusak
Copy link
Owner

@petobens this should be fixed now.

@petobens
Copy link
Author

Thanks. Any plans to distinguish between the fold marker (i.e the "triangle") and the actual icon (for instance the db)?

@kristijanhusak
Copy link
Owner

No, not really. I think it's flexible enough like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants