nvim editor color
This commit is contained in:
parent
7e5a875405
commit
79c2ae90c6
@ -1,26 +1,79 @@
|
|||||||
return {
|
return {
|
||||||
'norcalli/nvim-colorizer.lua',
|
-- 單純顯示顏色
|
||||||
lazy = false,
|
-- 不過以下ccc.nvim與oklch-color-picker.nvim都有此功能,故關閉
|
||||||
config = function()
|
-- {
|
||||||
-- Attaches to every FileType mode
|
-- 'norcalli/nvim-colorizer.lua',
|
||||||
require 'colorizer'.setup()
|
-- lazy = false,
|
||||||
|
-- config = function()
|
||||||
|
-- -- Attaches to every FileType mode
|
||||||
|
-- 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,
|
||||||
|
-- },
|
||||||
|
|
||||||
|
-- {
|
||||||
|
-- "uga-rosa/ccc.nvim",
|
||||||
|
-- lazy = false,
|
||||||
|
-- cmd = "CccPick",
|
||||||
|
-- keys = {
|
||||||
|
-- {
|
||||||
|
-- "<leader>v", "<cmd>CccPick<cr>", desc = "Color pick under cursor"
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- config = function()
|
||||||
|
-- -- Enable true color
|
||||||
|
-- vim.opt.termguicolors = true
|
||||||
|
--
|
||||||
|
-- local ccc = require("ccc")
|
||||||
|
-- local mapping = ccc.mapping
|
||||||
|
--
|
||||||
|
-- ccc.setup({
|
||||||
|
-- -- Your preferred settings
|
||||||
|
-- -- Example: enable highlighter
|
||||||
|
-- highlighter = {
|
||||||
|
-- auto_enable = true,
|
||||||
|
-- lsp = true,
|
||||||
|
-- },
|
||||||
|
-- inputs = {
|
||||||
|
-- ccc.input.rgb,
|
||||||
|
-- ccc.input.hsl,
|
||||||
|
-- ccc.input.cmyk,
|
||||||
|
--
|
||||||
|
-- }
|
||||||
|
-- })
|
||||||
|
-- end,
|
||||||
|
-- }
|
||||||
|
|
||||||
|
{
|
||||||
|
"eero-lehtinen/oklch-color-picker.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
version = "*",
|
||||||
|
keys = {
|
||||||
|
-- One handed keymap recommended, you will be using the mouse
|
||||||
|
{
|
||||||
|
"<leader>v",
|
||||||
|
function() require("oklch-color-picker").pick_under_cursor() end,
|
||||||
|
desc = "Color pick under cursor",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
---@type oklch.Opts
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user