refactor neovim: 調整plugin分類結構

This commit is contained in:
2025-04-30 12:13:26 +08:00
parent d313a3e650
commit afeac1bb77
15 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
return {
'projekt0n/github-nvim-theme',
name = 'github-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({
-- ...
})
vim.cmd('colorscheme github_dark')
end,
}

View File

@@ -0,0 +1,32 @@
-- if true then return {} end
return {
{
"EdenEast/nightfox.nvim",
lazy = false,
priority = 1000,
config = function()
-- 自訂配色
local palettes = {
nordfox = {
-- A specific style's value will be used over the `all`'s value
bg1 = "#2f3440", -- 故意改背景顏色為別的極相似色(因為當背景顏色和終端機背景顏色完全一致時,會觸發終端機透明的設定)
},
}
require("nightfox").setup({
options = {
transparent = false, -- Disable setting background
terminal_colors = true, -- Set terminal colors (vim.g.terminal_color_*) used in `:terminal`
styles = {
comments = "italic",
keywords = "bold",
types = "italic,bold",
},
},
palettes = palettes
})
vim.cmd("colorscheme nordfox")
end,
},
}

View File

@@ -0,0 +1,14 @@
-- Using Lazy
return {
"navarasu/onedark.nvim",
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
require('onedark').setup {
style = 'dark'
-- style = 'darker'
-- style = 'cool'
}
-- Enable theme
require('onedark').load()
end
}