Updated 7. Example Custom Plugins (markdown)

Asep Komarudin 2024-03-13 17:14:18 +07:00
parent d3cd081e3c
commit 0ac8c31207

@ -1670,6 +1670,8 @@ https://github.com/leoluz/nvim-dap-go <br>
- tambahkan config plugin - tambahkan config plugin
```lua ```lua
return { return {
{ "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()
@ -1688,10 +1690,21 @@ return {
parameters = "NONE", parameters = "NONE",
conditionals = "italic", conditionals = "italic",
virtual_text = "NONE", virtual_text = "NONE",
tags = "italic",
}, },
colors = { colors = {
-- red = "#FF0000", onedark = {
green = "#99c379",
gray = "#8094b4",
red = "#e06c75",
purple = "#c678dd",
yellow = "#e5c07a",
blue = "#61afef",
cyan = "#56b6c2",
bg_statusline = "#282c34", bg_statusline = "#282c34",
indentline = "#3b4261",
float_bg = "#282c34",
},
}, },
options = { options = {
cursorline = true, cursorline = true,
@ -1700,19 +1713,24 @@ return {
}, },
highlights = { highlights = {
-- overide cursor line fill colors -- overide cursor line fill colors
LineNr = { fg = "${fg}" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. LineNr = { fg = "#49505E" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg = "${fg}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. CursorLineNr = { fg = "${blue}" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
CursorLine = { bg = "#333842" }, CursorLine = { bg = "#333842" },
Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor Cursor = { fg = "${bg}", bg = "${fg}" }, -- character under the cursor
lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') lCursor = { fg = "${bg}", bg = "${fg}" }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM| CursorIM = { fg = "${bg}", bg = "${fg}" }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set. CursorColumn = { bg = "#333842" }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
-- overide nvimtree folder icon fill color -- overide nvimtree folder icon fill color
NvimTreeFolderIcon = { fg = "#6776a7" }, NvimTreeFolderIcon = { fg = "${gray}" },
-- overide nvimtree text fill color folder opened -- overide nvimtree text fill color folder opened
NvimTreeOpenedFolderName = { fg = "#6776a7" }, NvimTreeOpenedFolderName = { fg = "${blue}" },
-- overide nvimtree text fill color root folder -- overide nvimtree text fill color root folder
NvimTreeRootFolder = { fg = "#6776a7" }, NvimTreeRootFolder = { fg = "${yellow}" },
NvimTreeSpecialFile = { fg = "${yellow}" },
NvimTreeWinSeparator = { fg = "#202329" },
NvimTreeIndentMarker = { fg = "#3E4450" },
-- overide indenline fill color
IblIndent = { fg = "#3E4450" },
-- overide cmp cursorline fill color with #333842 -- overide cmp cursorline fill color with #333842
PmenuSel = { bg = "#333842" }, PmenuSel = { bg = "#333842" },
illuminatedWord = { bg = "#3b4261" }, illuminatedWord = { bg = "#3b4261" },
@ -1723,8 +1741,10 @@ return {
StatusLine = { fg = "#f8f8f2", bg = "${bg}" }, StatusLine = { fg = "#f8f8f2", bg = "${bg}" },
StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" }, StatusLineTerm = { fg = "#f8f8f2", bg = "${bg}" },
BufferLineFill = { bg = "${bg}" }, BufferLineFill = { bg = "${bg}" },
["@string.special.url.html"] = { fg = "${green}" },
["@text.uri.html"] = { fg = "${green}" },
Pmenu = { fg = "${fg}", bg = "${bg}" }, Pmenu = { fg = "${fg}", bg = "${bg}" },
PmenuThumb = { bg = "#3b4261" }, -- Popup menu: Thumb of the scrollbar. PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
-- overide lualine fill color with bg color -- overide lualine fill color with bg color
LualineNormal = { bg = "${bg}" }, LualineNormal = { bg = "${bg}" },
-- overide lualine_c fill color with bg color -- overide lualine_c fill color with bg color
@ -1746,6 +1766,7 @@ return {
}, },
}) })
end, end,
},
} }
``` ```
- load Colorscheme - load Colorscheme