Skip to content

db ui table border style #302

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

Open
maarutan opened this issue Jan 19, 2025 · 5 comments
Open

db ui table border style #302

maarutan opened this issue Jan 19, 2025 · 5 comments

Comments

@maarutan
Copy link

Title: Table Borders Display Issue with ASCII and Nerd Fonts

Description:

Hi,
I’m experiencing an issue with how table borders are displayed in vim-dadbod-ui. Despite enabling Nerd Fonts and setting vim.g.db_ui_use_nerd_fonts = 1, the table borders are not rendered as expected. Instead of the expected ASCII or styled borders, the tables appear plain and misaligned.

Expected Output (ASCII):

_______________________________________
| id   | date                | name   |
|------|---------------------|--------|
| 1    | 2025-01-18 15:50:09| marat   |
_______________________________________

Actual Output:

id  date                 name 
--  -------------------  -----
1   2025-01-18 15:50:09  marat

Steps to Reproduce:

  1. Install vim-dadbod-ui using the recommended setup in the documentation.
  2. Enable Nerd Fonts with vim.g.db_ui_use_nerd_fonts = 1 in Lua config.
  3. Open a database connection and query a table.

Configurations:

  • Neovim Version: [
    NVIM v0.10.3
    Build type: RelWithDebInfo
    LuaJIT 2.1.1731601260
    Run "nvim -V1 -v" for more info
    ]
  • OS: [arch x11 dwm]
  • Terminal Emulator: [kitty]
  • Nerd Font Used: [FiraCode NerdFont]

Additional Notes:

  • I also tried setting vim.g.db_ui_table_border_style = 'ascii', but the output remains the same.
  • The terminal is configured to use a Nerd Font, and other plugins display icons correctly.

Please let me know if there’s any additional setup or configuration I need to try. Thank you!

@kristijanhusak
Copy link
Owner

Query output is controlled by underlying CLI that does the query. We do not modify it in any way
Nerd fonts configuration is for the DBUI drawer.

@maarutan
Copy link
Author

how to make it have full border

@kristijanhusak
Copy link
Owner

I'm not sure you can.
You can maybe check the cli tool that is being used for the query, and see if there's a way to configure it.

@maarutan
Copy link
Author

I didn't understand what you mean, maybe you mean kitty or tpope/dadbod himself
or what are you talking about

I tried not to use sqlite3 and duckdb, it's the same there, tell me why there might be a non-continuous wrapping
can you give me more information

@kristijanhusak
Copy link
Owner

vim-dadbod-ui uses vim-dadbod under the hood.
vim-dadbod calls the CLI tool to get the results.
For example, for sqlite3, it does something like sqlite /path/to/dbfile select * from users and just prints the results that the tool gives.

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

No branches or pull requests

2 participants