nvim: color picker 更換顏色選擇器
This commit is contained in:
parent
4463bc2ef9
commit
5e0e677cb8
@ -1,32 +1,42 @@
|
|||||||
return {
|
return {
|
||||||
-- 單純顯示顏色
|
-- 單純顯示顏色
|
||||||
-- 不過以下ccc.nvim與oklch-color-picker.nvim都有此功能,故關閉
|
-- 不過以下ccc.nvim與oklch-color-picker.nvim都有此功能,故關閉
|
||||||
-- {
|
{
|
||||||
-- 'norcalli/nvim-colorizer.lua',
|
'norcalli/nvim-colorizer.lua',
|
||||||
-- lazy = false,
|
lazy = false,
|
||||||
-- config = function()
|
config = function()
|
||||||
-- -- Attaches to every FileType mode
|
-- Attaches to every FileType mode
|
||||||
-- require 'colorizer'.setup()
|
require 'colorizer'.setup()
|
||||||
|
|
||||||
-- -- require("colorizer").setup({
|
-- require("colorizer").setup({
|
||||||
-- -- '*'; -- Highlight all files, but customize some others.
|
-- '*'; -- Highlight all files, but customize some others.
|
||||||
-- -- '!vim'; -- Exclude vim from highlighting.
|
-- '!vim'; -- Exclude vim from highlighting.
|
||||||
-- -- '!markdown'; -- Exclude markdown from highlighting.
|
-- '!markdown'; -- Exclude markdown from highlighting.
|
||||||
-- -- '!text'; -- Exclude text from highlighting.
|
-- '!text'; -- Exclude text from highlighting.
|
||||||
-- -- '!html'; -- Exclude html from highlighting.
|
-- '!html'; -- Exclude html from highlighting.
|
||||||
-- -- '!css'; -- Exclude css from highlighting.
|
-- '!css'; -- Exclude css from highlighting.
|
||||||
-- -- '!javascript'; -- Exclude javascript from highlighting.
|
-- '!javascript'; -- Exclude javascript from highlighting.
|
||||||
-- -- '!typescript'; -- Exclude typescript from highlighting.
|
-- '!typescript'; -- Exclude typescript from highlighting.
|
||||||
-- -- }, {
|
-- }, {
|
||||||
-- -- RGB = true; -- #RGB hex codes
|
-- RGB = true; -- #RGB hex codes
|
||||||
-- -- RRGGBB = true; -- #RRGGBB hex codes
|
-- RRGGBB = true; -- #RRGGBB hex codes
|
||||||
-- -- names = false; -- "Name" codes like Blue or blue
|
-- names = false; -- "Name" codes like Blue or blue
|
||||||
-- -- RRGGBBAA = true; -- #RRGGBBAA hex codes
|
-- RRGGBBAA = true; -- #RRGGBBAA hex codes
|
||||||
-- -- rgb_fn = true; -- CSS rgb() and rgba() functions
|
-- rgb_fn = true; -- CSS rgb() and rgba() functions
|
||||||
-- -- hsl_fn = true; -- CSS hsl() and hsla() functions
|
-- hsl_fn = true; -- CSS hsl() and hsla() functions
|
||||||
-- -- })
|
-- })
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
|
{ "nvzone/volt", lazy = true },
|
||||||
|
{
|
||||||
|
"nvzone/minty",
|
||||||
|
cmd = { "Shades", "Huefy" },
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>v", "<cmd>Huefy<cr>", desc = "Color pick under cursor"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
-- {
|
-- {
|
||||||
-- "uga-rosa/ccc.nvim",
|
-- "uga-rosa/ccc.nvim",
|
||||||
@ -61,20 +71,21 @@ return {
|
|||||||
-- end,
|
-- end,
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
{
|
-- {
|
||||||
"eero-lehtinen/oklch-color-picker.nvim",
|
-- "eero-lehtinen/oklch-color-picker.nvim",
|
||||||
enabled = require("tools.gui").is_graphical(),
|
-- enabled = require("tools.gui").is_graphical(),
|
||||||
event = "VeryLazy",
|
-- event = "VeryLazy",
|
||||||
version = "*",
|
-- version = "*",
|
||||||
keys = {
|
-- keys = {
|
||||||
-- One handed keymap recommended, you will be using the mouse
|
-- -- One handed keymap recommended, you will be using the mouse
|
||||||
{
|
-- {
|
||||||
"<leader>v",
|
-- "<leader>v",
|
||||||
function() require("oklch-color-picker").pick_under_cursor() end,
|
-- function() require("oklch-color-picker").pick_under_cursor() end,
|
||||||
desc = "Color pick under cursor",
|
-- desc = "Color pick under cursor",
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
---@type oklch.Opts
|
-- ---@type oklch.Opts
|
||||||
opts = {},
|
-- opts = {},
|
||||||
}
|
-- },
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user