sonph / onehalf

Clean, vibrant and pleasing color schemes for Vim, Sublime Text, iTerm, gnome-terminal and more.
MIT License
1.78k stars 236 forks source link

Add lazy.nvim usage #145

Open jonashaag opened 1 year ago

juliancoffee commented 12 months ago

Oh, nice to find this MR, I would also add cmd to actually set the colorscheme

    {
        "sonph/onehalf",
        lazy = false,
        config = function(plugin)
            vim.opt.rtp:append(plugin.dir .. "/vim")
            vim.cmd [[ colorscheme onehalfdark ]]
            -- or vim.cmd [[ colorscheme onehalflight ]] if you prefer light theme
        end
    },

UPD: No, it doesn't work :sweat_smile: UPD2: It didn't work because I had an explicit "colorscheme desert" at the end of the file, maybe it would work, but it didn't work that nicely with lazy.nvim for me, so I went to find a different color scheme, sadly