57 lines
2.1 KiB
Lua
57 lines
2.1 KiB
Lua
return {
|
|
{
|
|
"NvChad/nvim-colorizer.lua",
|
|
config = function()
|
|
require("colorizer").setup({
|
|
filetypes = { "css", "javascript", html = { mode = "foreground" }, "astro", "vue", "scss", "text" },
|
|
user_default_options = {
|
|
RGB = true, -- #RGB hex codes
|
|
RRGGBB = true, -- #RRGGBB hex codes
|
|
names = true, -- "Name" codes like Blue or blue
|
|
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
|
AARRGGBB = false, -- 0xAARRGGBB hex codes
|
|
rgb_fn = true, -- CSS rgb() and rgba() functions
|
|
hsl_fn = true, -- CSS hsl() and hsla() functions
|
|
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
|
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
|
-- Available modes for `mode`: foreground, background, virtualtext
|
|
mode = "virtualtext", -- Set the display mode.
|
|
-- Available methods are false / true / "normal" / "lsp" / "both"
|
|
-- True is same as normal
|
|
tailwind = false, -- Enable tailwind colors
|
|
-- parsers can contain values used in |user_default_options|
|
|
sass = { enable = true, parsers = { "css" } }, -- Enable sass colors
|
|
virtualtext = "■",
|
|
-- update color values even if buffer is not focused
|
|
-- example use: cmp_menu, cmp_docs
|
|
always_update = false,
|
|
},
|
|
-- all the sub-options of filetypes apply to buftypes
|
|
buftypes = {},
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"toppair/peek.nvim",
|
|
event = { "VeryLazy" },
|
|
build = "deno task --quiet build:fast",
|
|
opts = {
|
|
auto_load = true, -- whether to automatically load preview when
|
|
close_on_bdelete = true,
|
|
syntax = true,
|
|
theme = "light", -- 'dark' or 'light'
|
|
update_on_change = true,
|
|
-- app = "webview", -- 'webview', 'browser', string or a table of strings
|
|
app = { "surf" },
|
|
filetype = { "markdown" }, -- list of filetypes to recognize as markdown
|
|
throttle_at = 200000, -- start throttling when file exceeds this
|
|
throttle_time = "auto", -- minimum amount of time in milliseconds
|
|
},
|
|
config = function(_, opts)
|
|
require("peek").setup(opts)
|
|
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
|
|
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
|
|
end,
|
|
},
|
|
}
|