ziontee113 / color-picker.nvim

A powerful Neovim plugin that lets users choose & modify RGB/HSL/HEX colors.
MIT License
281 stars 8 forks source link

Not an editor command: PickColor #4

Closed timoleistner closed 2 years ago

timoleistner commented 2 years ago

I've installed the plugin with

use "ziontee113/color-picker.nvim"

and packer shows the plugin as installed in :PackerStatus but if I try to run the command, :PickColor as well as PickColorInsert both return the error with the corresponding command (E492: Not an editor command: PickColor). Setting the keymaps didnt help either.

ziontee113 commented 2 years ago

Oh.... That's my bad. Using this will solve the issue:

Option 1:

require("color-picker")

Option 2:

require("color-picker").setup({
    ["icons"] = { "ﱢ", "" }, -- pick icons you want
    ["keymap"] = { -- map keys as you want
        ["U"] = "<Plug>Slider5Decrease",
        ["O"] = "<Plug>Slider5Increase",
    },
})
timoleistner commented 2 years ago

Alright this works :) Consider adding this as an installation instruction

use ({"ziontee113/color-picker.nvim",
    config = function()
        require("color-picker")
    end,
})
ziontee113 commented 2 years ago

Thank you for the suggestion, will do :)