kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.36k stars 70 forks source link

Remove cursorline option #218

Closed seblj closed 5 months ago

seblj commented 5 months ago

I feel like this should not be forced on the buffers created by this plugin, and should instead be set up by the user in their configs. I don't use this option, and have to use a major hack to turn it off:

vim.api.nvim_create_autocmd("BufEnter", {
    pattern = "*-query-*",
    group = vim.api.nvim_create_augroup("DadbodCursorlineHack", { clear = true }),
    callback = function()
        vim.defer_fn(function()
            vim.opt_local.cursorline = false
        end, 50)
    end,
    desc = "Disable cursorline in dbui",
})

Closes #217

kristijanhusak commented 5 months ago

Thanks!