mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-09 00:44:29 +02:00
add: update config
This commit is contained in:
parent
93e5e8860f
commit
b319a12e99
7 changed files with 154 additions and 115 deletions
|
@ -14,7 +14,8 @@
|
|||
-- github_dark, github_dark_default, github_dark_colorblind, github_dark_dimmed
|
||||
-- solarized-osaka
|
||||
-- darcula-dark
|
||||
vim.g.pcode_colorscheme = "darcula-dark"
|
||||
-- juliana
|
||||
vim.g.pcode_colorscheme = "juliana"
|
||||
|
||||
-- 0 =off 1= on
|
||||
vim.g.pcode_transparent_mode = 0
|
||||
|
|
18
lua/custom/plugins/juliana.lua
Normal file
18
lua/custom/plugins/juliana.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
-- "pojokcodeid/nvim-juliana",
|
||||
-- lazy = false,
|
||||
-- priority = 1000,
|
||||
-- opts = {},
|
||||
-- config = function()
|
||||
-- vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
-- pattern = "*",
|
||||
-- callback = function()
|
||||
-- -- get colors
|
||||
-- local colors = require("nvim-juliana").colors()
|
||||
-- -- custom hilights
|
||||
-- local hi = vim.api.nvim_set_hl
|
||||
-- hi(0, "FoldColumn", { bg = colors.bg2 })
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
}
|
|
@ -1,24 +1,24 @@
|
|||
return {
|
||||
{
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
opts = {
|
||||
user_default_options = {
|
||||
tailwind = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
{ "roobert/tailwindcss-colorizer-cmp.nvim", config = true },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
-- original kind icon formatter
|
||||
local format_kinds = opts.formatting.format
|
||||
opts.formatting.format = function(entry, item)
|
||||
format_kinds(entry, item) -- add icons
|
||||
return require("tailwindcss-colorizer-cmp").formatter(entry, item)
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
opts = {
|
||||
user_default_options = {
|
||||
tailwind = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
{ "roobert/tailwindcss-colorizer-cmp.nvim", config = true },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
-- original kind icon formatter
|
||||
local format_kinds = opts.formatting.format
|
||||
opts.formatting.format = function(entry, item)
|
||||
format_kinds(entry, item) -- add icons
|
||||
return require("tailwindcss-colorizer-cmp").formatter(entry, item)
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -694,4 +694,23 @@ return {
|
|||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"pojokcodeid/nvim-juliana",
|
||||
lazy = false,
|
||||
enabled = (color == "juliana") and true or false,
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
config = function()
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
-- get colors
|
||||
local colors = require("nvim-juliana").colors()
|
||||
-- custom hilights
|
||||
local hi = vim.api.nvim_set_hl
|
||||
hi(0, "FoldColumn", { bg = colors.bg2 })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,92 +1,92 @@
|
|||
return {
|
||||
cmd = { "tailwindcss-language-server", "--stdio" },
|
||||
filetypes = {
|
||||
"aspnetcorerazor",
|
||||
"astro",
|
||||
"astro-markdown",
|
||||
"blade",
|
||||
"clojure",
|
||||
"django-html",
|
||||
"htmldjango",
|
||||
"edge",
|
||||
"eelixir",
|
||||
"elixir",
|
||||
"ejs",
|
||||
"erb",
|
||||
"eruby",
|
||||
"gohtml",
|
||||
"gohtmltmpl",
|
||||
"haml",
|
||||
"handlebars",
|
||||
"hbs",
|
||||
"html",
|
||||
"html-eex",
|
||||
"heex",
|
||||
"jade",
|
||||
"leaf",
|
||||
"liquid",
|
||||
"markdown",
|
||||
"mdx",
|
||||
"mustache",
|
||||
"njk",
|
||||
"nunjucks",
|
||||
"php",
|
||||
"razor",
|
||||
"slim",
|
||||
"twig",
|
||||
"css",
|
||||
"less",
|
||||
"postcss",
|
||||
"sass",
|
||||
"scss",
|
||||
"stylus",
|
||||
"sugarss",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"reason",
|
||||
"rescript",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
"svelte",
|
||||
"templ",
|
||||
},
|
||||
-- init options
|
||||
init_options = {
|
||||
userLanguages = {
|
||||
eelixir = "html-eex",
|
||||
eruby = "erb",
|
||||
templ = "html",
|
||||
},
|
||||
},
|
||||
-- root dir
|
||||
root_dir = root_pattern(
|
||||
"tailwind.config.js",
|
||||
"tailwind.config.cjs",
|
||||
"tailwind.config.mjs",
|
||||
"tailwind.config.ts",
|
||||
"postcss.config.js",
|
||||
"postcss.config.cjs",
|
||||
"postcss.config.mjs",
|
||||
"postcss.config.ts",
|
||||
"package.json",
|
||||
"node_modules",
|
||||
".git"
|
||||
),
|
||||
-- settings
|
||||
settings = {
|
||||
tailwindCSS = {
|
||||
classAttributes = { "class", "className", "class:list", "classList", "ngClass" },
|
||||
lint = {
|
||||
cssConflict = "warning",
|
||||
invalidApply = "error",
|
||||
invalidConfigPath = "error",
|
||||
invalidScreen = "error",
|
||||
invalidTailwindDirective = "error",
|
||||
invalidVariant = "error",
|
||||
recommendedVariantOrder = "warning",
|
||||
},
|
||||
validate = true,
|
||||
},
|
||||
},
|
||||
-- cmd = { "tailwindcss-language-server", "--stdio" },
|
||||
-- filetypes = {
|
||||
-- "aspnetcorerazor",
|
||||
-- "astro",
|
||||
-- "astro-markdown",
|
||||
-- "blade",
|
||||
-- "clojure",
|
||||
-- "django-html",
|
||||
-- "htmldjango",
|
||||
-- "edge",
|
||||
-- "eelixir",
|
||||
-- "elixir",
|
||||
-- "ejs",
|
||||
-- "erb",
|
||||
-- "eruby",
|
||||
-- "gohtml",
|
||||
-- "gohtmltmpl",
|
||||
-- "haml",
|
||||
-- "handlebars",
|
||||
-- "hbs",
|
||||
-- "html",
|
||||
-- "html-eex",
|
||||
-- "heex",
|
||||
-- "jade",
|
||||
-- "leaf",
|
||||
-- "liquid",
|
||||
-- "markdown",
|
||||
-- "mdx",
|
||||
-- "mustache",
|
||||
-- "njk",
|
||||
-- "nunjucks",
|
||||
-- "php",
|
||||
-- "razor",
|
||||
-- "slim",
|
||||
-- "twig",
|
||||
-- "css",
|
||||
-- "less",
|
||||
-- "postcss",
|
||||
-- "sass",
|
||||
-- "scss",
|
||||
-- "stylus",
|
||||
-- "sugarss",
|
||||
-- "javascript",
|
||||
-- "javascriptreact",
|
||||
-- "reason",
|
||||
-- "rescript",
|
||||
-- "typescript",
|
||||
-- "typescriptreact",
|
||||
-- "vue",
|
||||
-- "svelte",
|
||||
-- "templ",
|
||||
-- },
|
||||
-- -- init options
|
||||
-- init_options = {
|
||||
-- userLanguages = {
|
||||
-- eelixir = "html-eex",
|
||||
-- eruby = "erb",
|
||||
-- templ = "html",
|
||||
-- },
|
||||
-- },
|
||||
-- -- root dir
|
||||
-- root_dir = root_pattern(
|
||||
-- "tailwind.config.js",
|
||||
-- "tailwind.config.cjs",
|
||||
-- "tailwind.config.mjs",
|
||||
-- "tailwind.config.ts",
|
||||
-- "postcss.config.js",
|
||||
-- "postcss.config.cjs",
|
||||
-- "postcss.config.mjs",
|
||||
-- "postcss.config.ts",
|
||||
-- "package.json",
|
||||
-- "node_modules",
|
||||
-- ".git"
|
||||
-- ),
|
||||
-- -- settings
|
||||
-- settings = {
|
||||
-- tailwindCSS = {
|
||||
-- classAttributes = { "class", "className", "class:list", "classList", "ngClass" },
|
||||
-- lint = {
|
||||
-- cssConflict = "warning",
|
||||
-- invalidApply = "error",
|
||||
-- invalidConfigPath = "error",
|
||||
-- invalidScreen = "error",
|
||||
-- invalidTailwindDirective = "error",
|
||||
-- invalidVariant = "error",
|
||||
-- recommendedVariantOrder = "warning",
|
||||
-- },
|
||||
-- validate = true,
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ local mode_map = {
|
|||
["VISUAL"] = "V",
|
||||
["REPLACE"] = "R",
|
||||
["COMMAND"] = "C",
|
||||
["O-PENDING"] = "O",
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue