colorize snip

This commit is contained in:
veypi
2023-10-10 17:34:19 +08:00
parent ed4676be72
commit 4974b6f774
7 changed files with 33 additions and 0 deletions
+3
View File
@@ -10,10 +10,13 @@
lvim.keys.normal_mode["<F2>"] = ":NvimTreeToggle<CR>"
lvim.keys.normal_mode["q"] = ":bd<CR>"
lvim.keys.normal_mode["Q"] = ":qa!<CR>"
lvim.keys.normal_mode["vs"] = ":split<CR>"
lvim.keys.normal_mode["vv"] = ":vsplit<CR>"
lvim.keys.normal_mode["\\["] = ":BufferLineCyclePrev<CR>"
lvim.keys.normal_mode["\\]"] = ":BufferLineCycleNext<CR>"
-- lvim.builtin.which_key.mappings["\["] = ":BufferLineCyclePrev<CR>"
-- nmap <leader>[ :BufferLineCyclePrev<CR>
-- nmap <leader>] :BufferLineCycleNext<CR>
+2
View File
@@ -1,3 +1,5 @@
lvim.builtin.telescope.defaults.file_ignore_patterns = { "public/deps/" }
lvim.builtin.telescope.defaults.path_display = {}
lvim.format_on_save.enabled = true
+14
View File
@@ -4,6 +4,20 @@ lvim.plugins = {
config = function()
end,
},
{
"norcalli/nvim-colorizer.lua",
config = function()
require("colorizer").setup({ "css", "scss", "html", "javascript", "vue", "ts" }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
RRGGBBAA = true, -- #RRGGBBAA 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
})
end,
},
{
"okuuva/auto-save.nvim",
config = function()