Skip to content

Output columns excessively wide #202

@foamrider

Description

@foamrider

Hi

I'm trying out dadbod and dadbod-ui. I'm currently connected to a MSSQL instance and the connection works great, but I'm having an issue with the output format.

The output of 5 columns is 5004 chars, and if I select 1 column, the width is 1000 chars, even if the content of all rows are max 36 chars (uuid). This means that I'm practically unable to view more than one column at the time.

This is my current Lazy config:

    {
        "kristijanhusak/vim-dadbod-ui",
        dependencies = {
            { "tpope/vim-dadbod", lazy = true },
            { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql" }, lazy = true },
        },
        cmd = {
            "DBUI",
            "DBUIToggle",
            "DBUIAddConnection",
            "DBUIFindBuffer",
        },
        init = function()
            vim.g.db_ui_use_nerd_fonts = 1
            vim.g.db_ui_show_help = 0
            vim.g.db_ui_win_position = "right"
        end,
        keys = {
            { "<leader>Dt", "<cmd>DBUIToggle<cr>", desc = "Toggle UI" },
            { "<leader>Df", "<cmd>DBUIFindBuffer<cr>", desc = "Find Buffer" },
            { "<leader>Dr", "<cmd>DBUIRenameBuffer<cr>", desc = "Rename Buffer" },
            { "<leader>Dq", "<cmd>DBUILastQueryInfo<cr>", desc = "Last Query Info" },
        },
    },

Is there a config or setting I'm missing, or how can I solve this? Any help is deeply appreciated

EDIT: Testet with a PostgreSQL connection, and with this it's working as it should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions