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

View File

@ -23,6 +23,7 @@
"null-ls.nvim": { "branch": "main", "commit": "33b853a3933eed3137cd055aac4e539e69832ad0" },
"nvim-autopairs": { "branch": "master", "commit": "7566a86f44bb72ba2b1a609f528a27d93241502d" },
"nvim-cmp": { "branch": "main", "commit": "11102d3db12c7f8b35265ad0e17a21511e5b1e68" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-dap": { "branch": "master", "commit": "6cedcb527e264c8f25e86afa8dae74c6692dee51" },
"nvim-dap-ui": { "branch": "master", "commit": "286f682f366fbc652b38dff893569374e9433dd3" },
"nvim-lspconfig": { "branch": "master", "commit": "427378a03ffc1e1bc023275583a49b1993e524d0" },

0
lsp-settings/rust.json Normal file
View File

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>

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

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()

View File

@ -9,6 +9,10 @@
{
"language": "python",
"path": "./python.json"
},
{
"language": "vue",
"path": "./vue.json"
}
]
}

9
snippets/vue.json Normal file
View File

@ -0,0 +1,9 @@
{
"withDefaults": {
"prefix": "withDefaults",
"body": [
"let props = withDefaults(defineProps<{\n}>(),\n {}\n)"
],
"description": "withDefaults"
}
}