added colorizer
This commit is contained in:
@@ -39,12 +39,12 @@ return {
|
|||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
-- Ctrl+Shift+e - Toggle explorer
|
-- Ctrl+Shift+e - Toggle explorer
|
||||||
{ "<C-S-e>", function() Snacks.explorer() end, desc = "Toggle Explorer" },
|
{ "<C-S-e>", function() Snacks.explorer() end, desc = "Toggle Explorer" },
|
||||||
-- Alternative binding if terminal doesn't handle Ctrl+Shift
|
-- Alternative binding if terminal doesn't handle Ctrl+Shift
|
||||||
{ "<leader>fe", function() Snacks.explorer() end, desc = "File Explorer" },
|
{ "<leader>fe", function() Snacks.explorer() end, desc = "File Explorer" },
|
||||||
-- Lazygit
|
-- Lazygit
|
||||||
{ "<leader>gg", function() Snacks.lazygit() end, desc = "Lazygit" },
|
{ "<leader>gg", function() Snacks.lazygit() end, desc = "Lazygit" },
|
||||||
{ "<leader>gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" },
|
{ "<leader>gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" },
|
||||||
{ "<leader>gf", function() Snacks.lazygit.log_file() end, desc = "Lazygit File History" },
|
{ "<leader>gf", function() Snacks.lazygit.log_file() end, desc = "Lazygit File History" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -62,6 +62,30 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Color preview for CSS, HTML, etc.
|
||||||
|
{
|
||||||
|
"norcalli/nvim-colorizer.lua",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
opts = {
|
||||||
|
"css",
|
||||||
|
"scss",
|
||||||
|
"html",
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"javascriptreact",
|
||||||
|
"typescriptreact",
|
||||||
|
"vue",
|
||||||
|
"svelte",
|
||||||
|
"lua",
|
||||||
|
"yaml",
|
||||||
|
"toml",
|
||||||
|
"conf",
|
||||||
|
css = { rgb_fn = true, hsl_fn = true },
|
||||||
|
scss = { rgb_fn = true, hsl_fn = true },
|
||||||
|
html = { names = false },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- Better terminal integration
|
-- Better terminal integration
|
||||||
{
|
{
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
|
|||||||
Reference in New Issue
Block a user