cronex.nvim icon indicating copy to clipboard operation
cronex.nvim copied to clipboard

Hide square at beginning

Open Myzel394 opened this issue 10 months ago • 1 comments

Is there some way to hide the square at the beginning? I'd rather instead wanna show this clock:

image

Myzel394 avatar Apr 14 '24 12:04 Myzel394

I like that idea. I should make that configuration more accessible. But for now you can go with this (which is a bit of a hack but should work fine):

return {
    "fabridamicelli/cronex.nvim",
    config = function()
        -- Initialize module (important to create namespace)
        require("cronex").setup({})
        -- Grab the namespace that Cronex uses for the explanations
        local ns = vim.api.nvim_get_namespaces()["cronex"]
        -- Override the config only for that namespace
        vim.diagnostic.config({
        virtual_text = {
            prefix = "󰥔"
        }
      }, ns
    )
    end
}

It looks like this:

use-clock

fabridamicelli avatar Apr 14 '24 13:04 fabridamicelli