From b2e5d989f9663e2c404fe67fafae509a9bb21bd8 Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Mon, 11 Mar 2024 12:29:09 +0700 Subject: [PATCH] add: update config theme --- lazy-lock.json | 6 ++-- lua/custom/default.lua | 2 +- lua/custom/plugins/onedarkpro.lua | 54 +++++++++++++++++++++++++++++++ lua/plugins/cmp.lua | 2 ++ lua/plugins/colorscheme.lua | 49 ++++++++++++++-------------- 5 files changed, 85 insertions(+), 28 deletions(-) create mode 100644 lua/custom/plugins/onedarkpro.lua diff --git a/lazy-lock.json b/lazy-lock.json index c4f1262..8ad0394 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -16,15 +16,14 @@ "gitsigns.nvim": { "branch": "main", "commit": "6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2" }, "indent-blankline.nvim": { "branch": "master", "commit": "821a7acd88587d966f7e464b0b3031dfe7f5680c" }, "lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" }, - "lsp-progress.nvim": { "branch": "main", "commit": "b673377c50ebaf37053f23cc3caeeb6d469ba1c1" }, + "lsp-progress.nvim": { "branch": "main", "commit": "1c37b1cd0611563a767f0a340d61f265c4c54ecd" }, "lualine.nvim": { "branch": "master", "commit": "8b56462bfb746760465264de41b4907310f113ec" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "56e435e09f8729af2d41973e81a0db440f8fe9c9" }, "mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, "mini.animate": { "branch": "main", "commit": "82519630b2760ffc516ebc387bef632f9c07b9f5" }, "mini.indentscope": { "branch": "main", "commit": "cf07f19e718ebb0bcc5b00999083ce11c37b8d40" }, - "neoscroll.nvim": { "branch": "master", "commit": "6e3546751076890304428150e53bd59198a4505d" }, - "nightfox.nvim": { "branch": "main", "commit": "57b8154aba0de8ced36722ea2674a7b97e4f468f" }, + "neoscroll.nvim": { "branch": "master", "commit": "21d52973bde32db998fc8b6590f87eb3c3c6d8e4" }, "noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" }, "none-ls-extras.nvim": { "branch": "main", "commit": "c226aca7a506dd4325fb96188bffe804d24bbf18" }, "none-ls.nvim": { "branch": "main", "commit": "ff3819c52ca04232fb70fbd6c1639de9abcbe122" }, @@ -46,6 +45,7 @@ "nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" }, + "sonokai": { "branch": "master", "commit": "e2e89497f178bec568a0a43cda651f0429ec8ec1" }, "telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 0012646..eaa0127 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -12,7 +12,7 @@ -- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha -- dracula -- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox -vim.g.pcode_colorscheme = "dracula" +vim.g.pcode_colorscheme = "onedark" -- custom transparent mode -- only support diff --git a/lua/custom/plugins/onedarkpro.lua b/lua/custom/plugins/onedarkpro.lua new file mode 100644 index 0000000..9421bd3 --- /dev/null +++ b/lua/custom/plugins/onedarkpro.lua @@ -0,0 +1,54 @@ +return { + -- "olimorris/onedarkpro.nvim", + -- priority = 1000, -- Ensure it loads first + -- config = function() + -- require("onedarkpro").setup({ + -- colors = { + -- -- red = "#FF0000", + -- }, + -- options = { + -- cursorline = true, + -- transparency = false, + -- }, + -- highlights = { + -- -- overide cursor line fill colors + -- CursorLine = { bg = "#333842" }, + -- -- overide nvimtree folder icon fill color + -- NvimTreeFolderIcon = { fg = "#6776a7" }, + -- -- overide nvimtree text fill color folder opened + -- NvimTreeOpenedFolderName = { fg = "#6776a7" }, + -- -- overide nvimtree text fill color root folder + -- NvimTreeRootFolder = { fg = "#6776a7" }, + -- -- overide cmp cursorline fill color with #333842 + -- PmenuSel = { bg = "#333842" }, + -- illuminatedWord = { bg = "#3b4261" }, + -- illuminatedCurWord = { bg = "#3b4261" }, + -- IlluminatedWordText = { bg = "#3b4261" }, + -- IlluminatedWordRead = { bg = "#3b4261" }, + -- IlluminatedWordWrite = { bg = "#3b4261" }, + -- StatusLine = { fg = "#f8f8f2", bg = "${bg}" }, + -- StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" }, + -- BufferLineFill = { bg = "${bg}" }, + -- Pmenu = { fg = "${fg}", bg = "${bg}" }, + -- -- 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}" }, + -- -- overide which-key fill color with bg color + -- WhichKeySeperator = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyDesc = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyFloat = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyValue = { bg = "${bg}" }, + -- -- overide which-key fill color with bg color + -- WhichKeyBorder = { bg = "${bg}" }, + -- }, + -- }) + -- end, +} diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index f83d4a4..aaa731f 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -106,10 +106,12 @@ return { completion = { border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, winhighlight = "Normal:bg,FloatBorder:bg,CursorLine:PmenuSel,Search:None", + scrollbar = true, }, documentation = { border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, winhighlight = "Normal:bg,FloatBorder:bg,CursorLine:PmenuSel,Search:None", + scrollbar = true, }, }, experimental = { diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index be827e7..ecffc55 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -355,6 +355,7 @@ return { IlluminatedWordText = { bg = "#3b4261" }, IlluminatedWordRead = { bg = "#3b4261" }, IlluminatedWordWrite = { bg = "#3b4261" }, + PmenuSel = { fg = "$fg", bg = "$bg1" }, -- overide lualine fill color with bg color LualineNormal = { bg = "$bg0" }, -- overide lualine_c fill color with bg color @@ -374,30 +375,30 @@ return { -- overide which-key fill color with bg color WhichKeyBorder = { bg = "$bg0" }, -- overide Lazy fill color with bg color - LazyNormal = { bg = "$bg0" }, - -- overide lazy background color with bg color - LazyBackground = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH1 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH2 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH3 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH4 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH5 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyH6 = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyButton = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyButtonActive = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazySpecial = { bg = "$bg0" }, - -- overide Lazy fill color with bg color - LazyProgress = { bg = "$bg0" }, - Pmenu = { fg = "$fg", bg = "$bg0" }, + -- LazyNormal = { bg = "$bg0" }, + -- -- overide lazy background color with bg color + -- LazyBackground = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH1 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH2 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH3 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH4 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH5 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyH6 = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyButton = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyButtonActive = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazySpecial = { bg = "$bg0" }, + -- -- overide Lazy fill color with bg color + -- LazyProgress = { bg = "$bg0" }, + -- Pmenu = { fg = "$fg", bg = "$bg0" }, }, transparent = transparent, lualine = {