mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
add: update config
This commit is contained in:
parent
5abaf08fa4
commit
9a2cbed5a8
6 changed files with 100 additions and 90 deletions
|
@ -26,7 +26,7 @@
|
||||||
"neoscroll.nvim": { "branch": "master", "commit": "21d52973bde32db998fc8b6590f87eb3c3c6d8e4" },
|
"neoscroll.nvim": { "branch": "master", "commit": "21d52973bde32db998fc8b6590f87eb3c3c6d8e4" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
|
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
|
||||||
"none-ls-extras.nvim": { "branch": "main", "commit": "c226aca7a506dd4325fb96188bffe804d24bbf18" },
|
"none-ls-extras.nvim": { "branch": "main", "commit": "c226aca7a506dd4325fb96188bffe804d24bbf18" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "ff3819c52ca04232fb70fbd6c1639de9abcbe122" },
|
"none-ls.nvim": { "branch": "main", "commit": "bc543fa6c9ca1b7cd39d1bb555a6276789b329a6" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
|
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
||||||
|
@ -43,11 +43,11 @@
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
|
||||||
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
|
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
|
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
|
||||||
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" },
|
"telescope.nvim": { "branch": "master", "commit": "b323abeb4baf9e4851c3af1961e770ce76c657c7" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "67c6050e1ca41260c919236a098ba278472c7520" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
||||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||||
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
||||||
|
|
|
@ -5,14 +5,13 @@
|
||||||
-- sonokai, sonokai_atlantis,
|
-- sonokai, sonokai_atlantis,
|
||||||
-- sonokai_andromeda,sonokai_shusia,sonokai_maia,sonokai_espresso
|
-- sonokai_andromeda,sonokai_shusia,sonokai_maia,sonokai_espresso
|
||||||
-- material, material_deepocean, material_palenight, material_lighter, material_darker
|
-- material, material_deepocean, material_palenight, material_lighter, material_darker
|
||||||
-- onedark, onedark_darker, onedark_cool, onedark_deep,onedark_warm,
|
-- onedark
|
||||||
-- onedark_warmer, onedark_light
|
|
||||||
-- lunar
|
-- lunar
|
||||||
-- nord
|
-- nord
|
||||||
-- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
|
-- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
|
||||||
-- dracula
|
-- dracula
|
||||||
-- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox
|
-- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox
|
||||||
vim.g.pcode_colorscheme = "onedark"
|
vim.g.pcode_colorscheme = "tokyonight"
|
||||||
|
|
||||||
-- custom transparent mode
|
-- custom transparent mode
|
||||||
-- only support
|
-- only support
|
||||||
|
|
|
@ -1,80 +1,80 @@
|
||||||
return {
|
return {
|
||||||
{
|
-- {
|
||||||
"folke/tokyonight.nvim",
|
-- "folke/tokyonight.nvim",
|
||||||
lazy = false,
|
-- lazy = false,
|
||||||
priority = 1000,
|
-- priority = 1000,
|
||||||
opts = {},
|
-- opts = {},
|
||||||
config = function()
|
-- config = function()
|
||||||
local status_ok, tokyonight = pcall(require, "tokyonight")
|
-- local status_ok, tokyonight = pcall(require, "tokyonight")
|
||||||
if not status_ok then
|
-- if not status_ok then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
local transp = false
|
-- local transp = false
|
||||||
local sidebar = "normal" --"dark , transparent, normal"
|
-- local sidebar = "normal" --"dark , transparent, normal"
|
||||||
local hilight = "#292e42"
|
-- local hilight = "#292e42"
|
||||||
local data_exists, config = pcall(require, "core.config")
|
-- local data_exists, config = pcall(require, "core.config")
|
||||||
if data_exists then
|
-- if data_exists then
|
||||||
local tras = config.transparent_mode
|
-- local tras = config.transparent_mode
|
||||||
if tras == 1 then
|
-- if tras == 1 then
|
||||||
transp = true
|
-- transp = true
|
||||||
sidebar = "transparent"
|
-- sidebar = "transparent"
|
||||||
-- hilight = "#3E4254"
|
-- -- hilight = "#3E4254"
|
||||||
-- hilight = "#353a56"
|
-- -- hilight = "#353a56"
|
||||||
hilight = "#292e42"
|
-- hilight = "#292e42"
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
tokyonight.setup({
|
-- tokyonight.setup({
|
||||||
-- your configuration comes here
|
-- -- your configuration comes here
|
||||||
-- or leave it empty to use the default settings
|
-- -- or leave it empty to use the default settings
|
||||||
style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
|
-- style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
|
||||||
light_style = "day", -- The theme is used when the background is set to light
|
-- light_style = "day", -- The theme is used when the background is set to light
|
||||||
transparent = transp, -- Enable this to disable setting the background color
|
-- transparent = transp, -- Enable this to disable setting the background color
|
||||||
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
|
-- terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
|
||||||
styles = {
|
-- styles = {
|
||||||
-- Style to be applied to different syntax groups
|
-- -- Style to be applied to different syntax groups
|
||||||
-- Value is any valid attr-list value for `:help nvim_set_hl`
|
-- -- Value is any valid attr-list value for `:help nvim_set_hl`
|
||||||
|
-- -- comments = { italic = true },
|
||||||
-- comments = { italic = true },
|
-- comments = { italic = true },
|
||||||
comments = { italic = true },
|
-- keywords = { italic = true },
|
||||||
keywords = { italic = true },
|
-- functions = {},
|
||||||
functions = {},
|
-- variables = {},
|
||||||
variables = {},
|
-- -- Background styles. Can be "dark", "transparent" or "normal"
|
||||||
-- Background styles. Can be "dark", "transparent" or "normal"
|
-- sidebars = sidebar, -- style for sidebars, see below
|
||||||
sidebars = sidebar, -- style for sidebars, see below
|
-- floats = sidebar, -- style for floating windows
|
||||||
floats = sidebar, -- style for floating windows
|
-- },
|
||||||
},
|
-- sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
|
||||||
sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
|
-- day_brightness = 0.2, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
|
||||||
day_brightness = 0.2, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
|
-- hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
|
||||||
hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
|
-- dim_inactive = false, -- dims inactive windows
|
||||||
dim_inactive = false, -- dims inactive windows
|
-- lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
|
||||||
lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
|
--
|
||||||
|
-- --- You can override specific color groups to use other groups or a hex color
|
||||||
--- You can override specific color groups to use other groups or a hex color
|
-- --- function will be called with a ColorScheme table
|
||||||
--- function will be called with a ColorScheme table
|
-- -- @param colors ColorScheme
|
||||||
-- @param colors ColorScheme
|
-- on_colors = function(colors)
|
||||||
on_colors = function(colors)
|
-- colors.bg_highlight = hilight
|
||||||
colors.bg_highlight = hilight
|
-- colors.bg_statusline = colors.none
|
||||||
colors.bg_statusline = colors.none
|
-- end,
|
||||||
end,
|
--
|
||||||
|
-- --- You can override specific highlights to use other groups or a hex color
|
||||||
--- You can override specific highlights to use other groups or a hex color
|
-- --- function will be called with a Highlights and ColorScheme table
|
||||||
--- function will be called with a Highlights and ColorScheme table
|
-- --@param highlights Highlights
|
||||||
--@param highlights Highlights
|
-- -- @param colors ColorScheme
|
||||||
-- @param colors ColorScheme
|
-- on_highlights = function(highlights, colors)
|
||||||
on_highlights = function(highlights, colors)
|
-- highlights.NvimTreeFolderIcon = {
|
||||||
highlights.NvimTreeFolderIcon = {
|
-- bg = colors.none,
|
||||||
bg = colors.none,
|
-- fg = "#e0af68",
|
||||||
fg = "#e0af68",
|
-- }
|
||||||
}
|
-- highlights.Underlined = {
|
||||||
highlights.Underlined = {
|
-- underline = false,
|
||||||
underline = false,
|
-- }
|
||||||
}
|
-- highlights.NvimTreeWinSeparator = {
|
||||||
highlights.NvimTreeWinSeparator = {
|
-- fg = colors.border,
|
||||||
fg = colors.border,
|
-- }
|
||||||
}
|
-- highlights.BufferLineFill = { bg = colors.bg }
|
||||||
highlights.BufferLineFill = { bg = colors.bg }
|
-- highlights.NvimTreeSpecialFile = { fg = colors.purple, underline = false }
|
||||||
highlights.NvimTreeSpecialFile = { fg = colors.purple, underline = false }
|
-- end,
|
||||||
end,
|
-- })
|
||||||
})
|
-- end,
|
||||||
end,
|
-- },
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -366,6 +366,10 @@ return {
|
||||||
variables = "none",
|
variables = "none",
|
||||||
},
|
},
|
||||||
highlights = {
|
highlights = {
|
||||||
|
-- overide indent line fill color
|
||||||
|
NvimTreeNormal = { fg = "$fg", bg = "$bg0" },
|
||||||
|
NvimTreeIndentMarker = { fg = "#3E4450" },
|
||||||
|
IblIndent = { fg = "#3E4450" },
|
||||||
["@markup.link.url"] = { fg = "$cyan", fmt = "italic" },
|
["@markup.link.url"] = { fg = "$cyan", fmt = "italic" },
|
||||||
["@text.uri"] = { fg = "$cyan", fmt = "none" },
|
["@text.uri"] = { fg = "$cyan", fmt = "none" },
|
||||||
["@tag"] = { fg = "$red" },
|
["@tag"] = { fg = "$red" },
|
||||||
|
|
|
@ -42,6 +42,8 @@ return {
|
||||||
"NeoTreeCursorLine",
|
"NeoTreeCursorLine",
|
||||||
-- disable Telescope active selection background
|
-- disable Telescope active selection background
|
||||||
"TelescopeSelection",
|
"TelescopeSelection",
|
||||||
|
-- disable lualine background color
|
||||||
|
"LualineNormal",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("transparent").clear_prefix("BufferLine")
|
require("transparent").clear_prefix("BufferLine")
|
||||||
|
@ -53,15 +55,15 @@ return {
|
||||||
require("transparent").clear_prefix("NvimTree")
|
require("transparent").clear_prefix("NvimTree")
|
||||||
-- clear prefix for NeoTree
|
-- clear prefix for NeoTree
|
||||||
require("transparent").clear_prefix("NeoTree")
|
require("transparent").clear_prefix("NeoTree")
|
||||||
|
-- clear prefix for Telescope
|
||||||
|
require("transparent").clear_prefix("Telescope")
|
||||||
if clear_lualine then
|
if clear_lualine then
|
||||||
-- clear prefix for Lualine
|
-- clear prefix for Lualine
|
||||||
require("transparent").clear_prefix("Lualine")
|
require("transparent").clear_prefix("Lualine")
|
||||||
end
|
|
||||||
-- clear prefix for Telescope
|
|
||||||
require("transparent").clear_prefix("Telescope")
|
|
||||||
-- create auto command to set transparent
|
-- create auto command to set transparent
|
||||||
vim.cmd("TransparentDisable")
|
vim.cmd("TransparentDisable")
|
||||||
vim.cmd("TransparentEnable")
|
vim.cmd("TransparentEnable")
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local transp = false
|
local transp = false
|
||||||
local sidebar = "dark"
|
local sidebar = "normal" --"dark , transparent, normal"
|
||||||
local hilight = "#292e42"
|
local hilight = "#292e42"
|
||||||
local data_exists, config = pcall(require, "core.config")
|
local data_exists, config = pcall(require, "core.config")
|
||||||
if data_exists then
|
if data_exists then
|
||||||
|
@ -61,5 +61,10 @@ tokyonight.setup({
|
||||||
highlights.Underlined = {
|
highlights.Underlined = {
|
||||||
underline = false,
|
underline = false,
|
||||||
}
|
}
|
||||||
|
highlights.NvimTreeWinSeparator = {
|
||||||
|
fg = colors.border,
|
||||||
|
}
|
||||||
|
highlights.BufferLineFill = { bg = colors.bg }
|
||||||
|
highlights.NvimTreeSpecialFile = { fg = colors.purple, underline = false }
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue