kristijanhusak / vim-dadbod-ui

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

Remove cursorline option #218

Closed seblj closed 10 months ago

seblj commented 10 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 10 months ago

Thanks!