ziontee113 / color-picker.nvim

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

Not an editor command: PickColor (and other) #26

Open maciejcieslik opened 8 months ago

maciejcieslik commented 8 months ago

When i try to use color picker i get error about not existing command:

image

{
    "ziontee113/color-picker.nvim",
    config = function()
      require("color-picker")
    end,
},

Mappings:

M.color_picker = {
  plugin = true,
  n = {

    ["<C-c>"] = {"<cmd> PickColor <CR>"},
    --["<C-c>"] = {"<cmd> PickColorInsert <CR>"},
    ["<leader>rgb"] = {"<cmd> ConvertHEXandRGB <CR>"},
    ["<leader>hsl"] = {"<cmd> ConvertHEXandHSL <CR>"},
  }
}

I use: nvim 0.9.5 Build type: RelWithDebInfo LuaJIT 2.1.1703942320

on Windows 11 64bit

with nvchad (latest)

dikkadev commented 5 months ago

Same with lazy and newer version

{
    'ziontee113/color-picker.nvim',
    init = function(_)
        require('color-picker').setup()
    end,
    keys = {
        { '<leader>cp', '<cmd>ColorPicker<cr>', desc = 'Color picker' },
    }
}
NVIM v0.10.0-dev-2854+g49983387f
Build type: RelWithDebInfo
LuaJIT 2.1.1710088188