mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
update
This commit is contained in:
parent
1b1f8b9967
commit
1cacea97f6
7 changed files with 153 additions and 108 deletions
|
@ -21,6 +21,7 @@ require("lazy").setup({
|
||||||
version = "*", -- try installing the latest stable version for plugins that support semver
|
version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
|
backdrop = 100,
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
browser = "chrome",
|
browser = "chrome",
|
||||||
throttle = 40,
|
throttle = 40,
|
||||||
|
|
|
@ -1,101 +1,110 @@
|
||||||
return {
|
return {
|
||||||
-- { "navarasu/onedark.nvim", enabled = false },
|
{ "navarasu/onedark.nvim", enabled = false },
|
||||||
-- {
|
{
|
||||||
-- "olimorris/onedarkpro.nvim",
|
"olimorris/onedarkpro.nvim",
|
||||||
-- priority = 1000, -- Ensure it loads first
|
priority = 1000, -- Ensure it loads first
|
||||||
-- config = function()
|
config = function()
|
||||||
-- require("onedarkpro").setup({
|
local is_transparent = false
|
||||||
-- styles = {
|
require("onedarkpro").setup({
|
||||||
-- types = "NONE",
|
styles = {
|
||||||
-- methods = "NONE",
|
types = "NONE",
|
||||||
-- numbers = "NONE",
|
methods = "NONE",
|
||||||
-- strings = "NONE",
|
numbers = "NONE",
|
||||||
-- comments = "italic",
|
strings = "NONE",
|
||||||
-- keywords = "bold,italic",
|
comments = "italic",
|
||||||
-- constants = "NONE",
|
keywords = "bold,italic",
|
||||||
-- functions = "italic",
|
constants = "NONE",
|
||||||
-- operators = "NONE",
|
functions = "italic",
|
||||||
-- variables = "NONE",
|
operators = "NONE",
|
||||||
-- parameters = "NONE",
|
variables = "NONE",
|
||||||
-- conditionals = "italic",
|
parameters = "NONE",
|
||||||
-- virtual_text = "NONE",
|
conditionals = "italic",
|
||||||
-- tags = "italic",
|
virtual_text = "NONE",
|
||||||
-- },
|
tags = "italic",
|
||||||
-- colors = {
|
},
|
||||||
-- onedark = {
|
colors = {
|
||||||
-- green = "#99c379",
|
onedark = {
|
||||||
-- gray = "#8094b4",
|
green = "#99c379",
|
||||||
-- red = "#e06c75",
|
gray = "#8094b4",
|
||||||
-- purple = "#c678dd",
|
red = "#e06c75",
|
||||||
-- yellow = "#e5c07a",
|
purple = "#c678dd",
|
||||||
-- blue = "#61afef",
|
yellow = "#e5c07a",
|
||||||
-- cyan = "#56b6c2",
|
blue = "#61afef",
|
||||||
-- bg_statusline = "#282c34",
|
cyan = "#56b6c2",
|
||||||
-- indentline = "#3b4261",
|
bg_statusline = "#282c34",
|
||||||
-- float_bg = "#282c34",
|
indentline = "#3b4261",
|
||||||
-- },
|
float_bg = "#282c34",
|
||||||
-- },
|
},
|
||||||
-- options = {
|
},
|
||||||
-- cursorline = true,
|
options = {
|
||||||
-- transparency = false,
|
cursorline = true,
|
||||||
-- terminal_colors = true,
|
transparency = is_transparent,
|
||||||
-- },
|
terminal_colors = true,
|
||||||
-- highlights = {
|
},
|
||||||
-- -- overide cursor line fill colors
|
highlights = {
|
||||||
-- LineNr = { fg = "#49505E" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
-- overide cursor line fill colors
|
||||||
-- CursorLineNr = { fg = "${blue}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
LineNr = { fg = "#49505E" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
||||||
-- CursorLine = { bg = "#333842" },
|
CursorLineNr = { fg = "${blue}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||||
-- Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor
|
CursorLine = { bg = "#333842" },
|
||||||
-- lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
|
Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor
|
||||||
-- CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM|
|
lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
|
||||||
-- CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM|
|
||||||
-- -- overide nvimtree folder icon fill color
|
CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
||||||
-- NvimTreeFolderIcon = { fg = "${gray}" },
|
-- overide nvimtree folder icon fill color
|
||||||
-- -- overide nvimtree text fill color folder opened
|
NvimTreeFolderIcon = { fg = "${gray}" },
|
||||||
-- NvimTreeOpenedFolderName = { fg = "${blue}" },
|
-- overide nvimtree text fill color folder opened
|
||||||
-- -- overide nvimtree text fill color root folder
|
NvimTreeOpenedFolderName = { fg = "${blue}" },
|
||||||
-- NvimTreeRootFolder = { fg = "${yellow}" },
|
-- overide nvimtree text fill color root folder
|
||||||
-- NvimTreeSpecialFile = { fg = "${yellow}" },
|
NvimTreeRootFolder = { fg = "${yellow}" },
|
||||||
-- NvimTreeWinSeparator = { fg = "#202329" },
|
NvimTreeSpecialFile = { fg = "${orange}" },
|
||||||
-- NvimTreeIndentMarker = { fg = "#3E4450" },
|
NvimTreeWinSeparator = { fg = "#202329" },
|
||||||
-- -- overide indenline fill color
|
NvimTreeIndentMarker = { fg = "#3E4450" },
|
||||||
-- IblIndent = { fg = "#3E4450" },
|
-- overide indenline fill color
|
||||||
-- -- overide cmp cursorline fill color with #333842
|
IblIndent = { fg = "#3E4450" },
|
||||||
-- PmenuSel = { bg = "#333842" },
|
-- overide cmp cursorline fill color with #333842
|
||||||
-- illuminatedWord = { bg = "#3b4261" },
|
PmenuSel = { bg = "#333842" },
|
||||||
-- illuminatedCurWord = { bg = "#3b4261" },
|
illuminatedWord = { bg = "#3b4261" },
|
||||||
-- IlluminatedWordText = { bg = "#3b4261" },
|
illuminatedCurWord = { bg = "#3b4261" },
|
||||||
-- IlluminatedWordRead = { bg = "#3b4261" },
|
IlluminatedWordText = { bg = "#3b4261" },
|
||||||
-- IlluminatedWordWrite = { bg = "#3b4261" },
|
IlluminatedWordRead = { bg = "#3b4261" },
|
||||||
-- StatusLine = { fg = "#f8f8f2", bg = "${bg}" },
|
IlluminatedWordWrite = { bg = "#3b4261" },
|
||||||
-- StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" },
|
StatusLine = { fg = "#f8f8f2", bg = is_transparent and "NONE" or "${bg}" },
|
||||||
-- BufferLineFill = { bg = "${bg}" },
|
StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" },
|
||||||
-- ["@string.special.url.html"] = { fg = "${green}" },
|
BufferLineFill = { bg = is_transparent and "NONE" or "${bg}" },
|
||||||
-- ["@text.uri.html"] = { fg = "${green}" },
|
["@string.special.url.html"] = { fg = "${green}" },
|
||||||
-- ["@tag.javascript"] = { fg = "${red}" },
|
["@text.uri.html"] = { fg = "${green}" },
|
||||||
-- ["@constructor.javascript"] = { fg = "${red}" },
|
["@tag.javascript"] = { fg = "${red}" },
|
||||||
-- Pmenu = { fg = "${fg}", bg = "${bg}" },
|
["@tag.attribute"] = { fg = "${orange}", style = "italic" },
|
||||||
-- PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
|
["@constructor.javascript"] = { fg = "${red}" },
|
||||||
-- -- overide lualine fill color with bg color
|
["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names
|
||||||
-- LualineNormal = { bg = "${bg}" },
|
["@variable.builtin"] = { fg = "${red}", style = "NONE" },
|
||||||
-- -- overide lualine_c fill color with bg color
|
["@variable.member"] = "${cyan}",
|
||||||
-- LualineC = { bg = "${bg}" },
|
["@variable.parameter"] = "${red}",
|
||||||
-- -- overide lualine_x fill color with bg color
|
["@property"] = { fg = "${cyan}" }, -- similar to `@field`
|
||||||
-- LualineX = { bg = "${bg}" },
|
NvimTreeGitDirty = { fg = "${yellow}" },
|
||||||
-- -- overide which-key fill color with bg color
|
Pmenu = { fg = "${fg}", bg = "${bg}" },
|
||||||
|
PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
|
||||||
|
-- overide lualine fill color with bg color
|
||||||
|
LualineNormal = { bg = "${bg}" },
|
||||||
|
-- overide lualine_c fill color with bg color
|
||||||
|
LualineC = { bg = "${bg}" },
|
||||||
|
-- overide lualine_x fill color with bg color
|
||||||
|
LualineX = { bg = "${bg}" },
|
||||||
|
-- overide which-key fill color with bg color
|
||||||
-- WhichKey = { bg = "${bg}" },
|
-- WhichKey = { bg = "${bg}" },
|
||||||
-- -- overide which-key fill color with bg color
|
-- -- overide which-key fill color with bg color
|
||||||
-- WhichKeySeperator = { bg = "${bg}" },
|
-- WhichKeySeperator = { bg = "${bg}" },
|
||||||
-- -- overide which-key fill color with bg color
|
-- -- overide which-key fill color with bg color
|
||||||
-- WhichKeyDesc = { bg = "${bg}" },
|
-- WhichKeyDesc = { fg = "${red}" },
|
||||||
-- -- overide which-key fill color with bg color
|
-- -- overide which-key fill color with bg color
|
||||||
-- WhichKeyFloat = { bg = "${bg}" },
|
-- WhichKeyFloat = { bg = "${bg}" },
|
||||||
|
WhichKeyFloat = { bg = is_transparent and "NONE" or "${bg}" },
|
||||||
-- -- overide which-key fill color with bg color
|
-- -- overide which-key fill color with bg color
|
||||||
-- WhichKeyValue = { bg = "${bg}" },
|
-- WhichKeyValue = { bg = "${bg}" },
|
||||||
-- -- overide which-key fill color with bg color
|
-- -- overide which-key fill color with bg color
|
||||||
-- WhichKeyBorder = { bg = "${bg}" },
|
-- WhichKeyBorder = { bg = "${bg}" },
|
||||||
-- },
|
},
|
||||||
-- })
|
})
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -354,6 +354,7 @@ return {
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
-- Lua
|
-- Lua
|
||||||
|
local util = require("onedark.util")
|
||||||
require("onedark").setup({
|
require("onedark").setup({
|
||||||
term_colors = true,
|
term_colors = true,
|
||||||
style = onedark_style,
|
style = onedark_style,
|
||||||
|
@ -383,7 +384,7 @@ return {
|
||||||
-- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp
|
-- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp
|
||||||
-- overide indent line fill color
|
-- overide indent line fill color
|
||||||
NvimTreeNormal = { fg = "$fg", bg = "$bg0" },
|
NvimTreeNormal = { fg = "$fg", bg = "$bg0" },
|
||||||
NvimTreeIndentMarker = { fg = "#3E4450" },
|
NvimTreeIndentMarker = { fg = "#515661" },
|
||||||
-- NvimTreeGitIgnored = { fg = "$gray", bg = "NONE" },
|
-- NvimTreeGitIgnored = { fg = "$gray", bg = "NONE" },
|
||||||
IblIndent = { fg = "#3E4450" },
|
IblIndent = { fg = "#3E4450" },
|
||||||
-- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" },
|
-- NvimTreeFolderIcon = { bg = "NONE", fg = "$blue" },
|
||||||
|
|
|
@ -364,9 +364,29 @@ return {
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||||
opts = function()
|
-- opts = function()
|
||||||
require("user.colorizer")
|
-- require("user.colorizer")
|
||||||
end,
|
-- end,
|
||||||
|
opts = {
|
||||||
|
user_default_options = {
|
||||||
|
RGB = true, -- #RGB hex codes
|
||||||
|
RRGGBB = true, -- #RRGGBB hex codes
|
||||||
|
names = true, -- "Name" codes like Blue
|
||||||
|
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
|
||||||
|
-- Available modes: foreground, background
|
||||||
|
mode = "background", -- Set the display mode.
|
||||||
|
tailwind = true,
|
||||||
|
},
|
||||||
|
filetypes = {
|
||||||
|
"*", -- Highlight all files, but customize some others.
|
||||||
|
css = { rgb_fn = true }, -- Enable parsing rgb(...) functions in css.
|
||||||
|
html = { names = false }, -- Disable parsing "names" like Blue or Gray
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
-- for winbar icon
|
-- for winbar icon
|
||||||
{
|
{
|
||||||
|
|
|
@ -82,7 +82,7 @@ return {
|
||||||
Calendar = "",
|
Calendar = "",
|
||||||
Check = "",
|
Check = "",
|
||||||
ChevronRight = "",
|
ChevronRight = "",
|
||||||
ChevronShortDown = "",
|
ChevronShortDown = "",
|
||||||
ChevronShortLeft = "",
|
ChevronShortLeft = "",
|
||||||
ChevronShortRight = "",
|
ChevronShortRight = "",
|
||||||
ChevronShortUp = "",
|
ChevronShortUp = "",
|
||||||
|
|
|
@ -55,7 +55,7 @@ nvim_tree.setup({
|
||||||
root_folder_label = false,
|
root_folder_label = false,
|
||||||
indent_width = 2,
|
indent_width = 2,
|
||||||
indent_markers = {
|
indent_markers = {
|
||||||
enable = false,
|
enable = true,
|
||||||
inline_arrows = true,
|
inline_arrows = true,
|
||||||
icons = {
|
icons = {
|
||||||
corner = "└",
|
corner = "└",
|
||||||
|
@ -80,8 +80,10 @@ nvim_tree.setup({
|
||||||
symlink = icons.ui.FileSymlink,
|
symlink = icons.ui.FileSymlink,
|
||||||
bookmark = icons.ui.BookMark,
|
bookmark = icons.ui.BookMark,
|
||||||
folder = {
|
folder = {
|
||||||
arrow_closed = icons.ui.TriangleShortArrowRight,
|
-- arrow_closed = icons.ui.TriangleShortArrowRight,
|
||||||
arrow_open = icons.ui.TriangleShortArrowDown,
|
arrow_closed = icons.ui.ChevronShortRight,
|
||||||
|
-- arrow_open = icons.ui.TriangleShortArrowDown,
|
||||||
|
arrow_open = icons.ui.ChevronShortDown,
|
||||||
default = icons.ui.Folder,
|
default = icons.ui.Folder,
|
||||||
open = icons.ui.FolderOpen,
|
open = icons.ui.FolderOpen,
|
||||||
empty = icons.ui.EmptyFolder,
|
empty = icons.ui.EmptyFolder,
|
||||||
|
|
|
@ -155,6 +155,12 @@ material_icon.setup({
|
||||||
cterm_color = "220",
|
cterm_color = "220",
|
||||||
name = "jpg",
|
name = "jpg",
|
||||||
},
|
},
|
||||||
|
["jpeg"] = {
|
||||||
|
icon = "",
|
||||||
|
color = "#88C057",
|
||||||
|
cterm_color = "220",
|
||||||
|
name = "jpeg",
|
||||||
|
},
|
||||||
["csv"] = {
|
["csv"] = {
|
||||||
icon = "",
|
icon = "",
|
||||||
color = "#57965c",
|
color = "#57965c",
|
||||||
|
@ -493,5 +499,11 @@ web_devicons.setup({
|
||||||
cterm_color = "220",
|
cterm_color = "220",
|
||||||
name = "gitlabciyaml",
|
name = "gitlabciyaml",
|
||||||
},
|
},
|
||||||
|
[".env_example"] = {
|
||||||
|
icon = "",
|
||||||
|
color = "#faf743",
|
||||||
|
cterm_color = "227",
|
||||||
|
name = "Envexample",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue