update config

This commit is contained in:
asep komarudin 2024-03-15 23:10:04 +07:00
parent 9a2cbed5a8
commit 3563dd28e9
8 changed files with 185 additions and 11 deletions

View file

@ -17,3 +17,4 @@ require("user.keymaps")
-- require("user.chat_gpt")
-- vim.cmd("colorscheme one_monokai")
-- vim.cmd("colorscheme onedark")
vim.cmd("colorscheme github_dark_dimmed")

View file

@ -11,7 +11,7 @@
-- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
-- dracula
-- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox
vim.g.pcode_colorscheme = "tokyonight"
vim.g.pcode_colorscheme = "onedark"
-- custom transparent mode
-- only support

View file

@ -0,0 +1,78 @@
return {
"projekt0n/github-nvim-theme",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
local palette = require("github-theme.palette").load("github_dark_dimmed")
require("github-theme").setup({
options = {
-- Compiled file's destination location
compile_path = vim.fn.stdpath("cache") .. "/github-theme",
compile_file_suffix = "_compiled", -- Compiled file suffix
hide_end_of_buffer = true, -- Hide the '~' character at the end of the buffer for a cleaner look
hide_nc_statusline = true, -- Override the underline style for non-active statuslines
transparent = false, -- Disable setting background
terminal_colors = true, -- Set terminal colors (vim.g.terminal_color_*) used in `:terminal`
dim_inactive = false, -- Non focused panes set to alternative background
module_default = true, -- Default enable value for modules
styles = { -- Style to be applied to different syntax groups
comments = "italic", -- Value is any valid attr-list value `:help attr-list`
functions = "italic",
keywords = "NONE",
variables = "NONE",
conditionals = "NONE",
constants = "NONE",
numbers = "NONE",
operators = "NONE",
strings = "NONE",
types = "NONE",
},
inverse = { -- Inverse highlight for different types
match_paren = false,
visual = false,
search = false,
},
darken = { -- Darken floating windows and sidebar-like windows
floats = false,
sidebars = {
enabled = true,
list = {}, -- Apply dark background to specific windows
},
},
modules = { -- List of various plugins and additional options
-- ...
},
},
palettes = {
all = {
bg0 = "bg1",
},
},
specs = {},
groups = {
all = {
-- As with specs and palettes, a specific style's value will be used over the `all`'s value.
illuminatedWord = { bg = "#3b4261" },
illuminatedCurWord = { bg = "#3b4261" },
IlluminatedWordText = { bg = "#3b4261" },
IlluminatedWordRead = { bg = "#3b4261" },
IlluminatedWordWrite = { bg = "#3b4261" },
NvimTreeNormal = { fg = "fg1", bg = "bg1" },
NvimTreeSpecialFile = { fg = "fg1", style = "italic" },
BufferLineFill = { bg = "bg1" },
BufferLineUnfocusedFill = { bg = "bg1" },
LualineNormal = { bg = "bg1" },
StatusLine = { bg = "bg1" },
StatusLineTerm = { bg = "bg1" },
Pmenu = { bg = "bg1" },
PmenuSel = { link = "CursorLine" },
WhichKeyFloat = { bg = "bg1" },
LazyNormal = { bg = "bg1" },
LazyBackground = { bg = "bg1" },
["@tag.attribute"] = { fg = palette.field, style = "italic" },
["@text.uri"] = { fg = palette.const, style = "italic" },
},
},
})
end,
}

View file

@ -0,0 +1,69 @@
return {
-- "projekt0n/github-nvim-theme",
-- lazy = false, -- make sure we load this during startup if it is your main colorscheme
-- priority = 1000, -- make sure to load this before all the other start plugins
-- config = function()
-- require("github-theme").setup({
-- options = {
-- -- Compiled file's destination location
-- compile_path = vim.fn.stdpath("cache") .. "/github-theme",
-- compile_file_suffix = "_compiled", -- Compiled file suffix
-- hide_end_of_buffer = true, -- Hide the '~' character at the end of the buffer for a cleaner look
-- hide_nc_statusline = true, -- Override the underline style for non-active statuslines
-- transparent = false, -- Disable setting background
-- terminal_colors = true, -- Set terminal colors (vim.g.terminal_color_*) used in `:terminal`
-- dim_inactive = false, -- Non focused panes set to alternative background
-- module_default = true, -- Default enable value for modules
-- styles = { -- Style to be applied to different syntax groups
-- comments = "NONE", -- Value is any valid attr-list value `:help attr-list`
-- functions = "NONE",
-- keywords = "NONE",
-- variables = "NONE",
-- conditionals = "NONE",
-- constants = "NONE",
-- numbers = "NONE",
-- operators = "NONE",
-- strings = "NONE",
-- types = "NONE",
-- },
-- inverse = { -- Inverse highlight for different types
-- match_paren = false,
-- visual = false,
-- search = false,
-- },
-- darken = { -- Darken floating windows and sidebar-like windows
-- floats = false,
-- sidebars = {
-- enabled = true,
-- list = {}, -- Apply dark background to specific windows
-- },
-- },
-- modules = { -- List of various plugins and additional options
-- -- ...
-- },
-- },
-- palettes = {},
-- specs = {},
-- groups = {
-- -- As with specs and palettes, the values defined under `all` will be applied to every style.
-- all = {
-- -- If `link` is defined it will be applied over any other values defined
-- Whitespace = { link = "Comment" },
--
-- -- Specs are used for the template. Specs have their palette's as a field that can be accessed
-- IncSearch = { bg = "palette.cyan" },
-- illuminatedWord = { bg = "#3b4261" },
-- illuminatedCurWord = { bg = "#3b4261" },
-- IlluminatedWordText = { bg = "#3b4261" },
-- IlluminatedWordRead = { bg = "#3b4261" },
-- IlluminatedWordWrite = { bg = "#3b4261" },
-- -- NvimTreeNormal = { fg = "palette.fg1", bg = "palette.bg2" },
-- },
-- github_dark = {
-- -- As with specs and palettes, a specific style's value will be used over the `all`'s value.
-- PmenuSel = { bg = "#73daca", fg = "bg0" },
-- },
-- },
-- })
-- end,
}

View file

@ -105,12 +105,12 @@ return {
-- remove border window from cmp
completion = {
border = { "", "", "", "", "", "", "", "" },
winhighlight = "Normal:bg,FloatBorder:bg,CursorLine:PmenuSel,Search:None",
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
scrollbar = true,
},
documentation = {
border = { "", "", "", "", "", "", "", "" },
winhighlight = "Normal:bg,FloatBorder:bg,CursorLine:PmenuSel,Search:None",
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
scrollbar = true,
},
},

View file

@ -366,6 +366,7 @@ return {
variables = "none",
},
highlights = {
-- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp
-- overide indent line fill color
NvimTreeNormal = { fg = "$fg", bg = "$bg0" },
NvimTreeIndentMarker = { fg = "#3E4450" },

View file

@ -123,6 +123,18 @@ material_icon.setup({
cterm_color = "220",
name = "rar",
},
["cfm"] = {
icon = "",
color = "#507F89",
cterm_color = "220",
name = "cfm",
},
["cfc"] = {
icon = "",
color = "#507F89",
cterm_color = "220",
name = "cfc",
},
-- ["go"] = {
-- icon = "󰟓",
-- color = "#0FBFCF",
@ -317,5 +329,17 @@ web_devicons.setup({
cterm_color = "220",
name = "gradlewFile",
},
["dockerfile-development"] = {
icon = "",
color = "#0087c9",
cterm_color = "220",
name = "gradlewFile-development",
},
["dockerfile-staging"] = {
icon = "",
color = "#0087c9",
cterm_color = "220",
name = "gradlewFile-staging",
},
},
})