feat(colorscheme): change colorscheme to onedark
This commit is contained in:
@@ -38,7 +38,7 @@ local plugins = {
|
|||||||
---@type LazyConfig
|
---@type LazyConfig
|
||||||
local opts = {
|
local opts = {
|
||||||
install = {
|
install = {
|
||||||
colorscheme = { "moonfly" },
|
colorscheme = { "onedark" },
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
-- https://github.com/bluz71/vim-moonfly-colors
|
|
||||||
|
|
||||||
---@type LazyPluginSpec
|
|
||||||
return {
|
|
||||||
"bluz71/vim-moonfly-colors",
|
|
||||||
priority = 1000,
|
|
||||||
lazy = false,
|
|
||||||
name = "moonfly",
|
|
||||||
init = function()
|
|
||||||
vim.g.moonflyNormalFloat = true
|
|
||||||
vim.g.moonflyCursorColor = true
|
|
||||||
vim.g.moonflyWinSeparator = 2
|
|
||||||
vim.g.moonflyVirtualTextColor = true
|
|
||||||
end,
|
|
||||||
config = function()
|
|
||||||
vim.cmd.colorscheme("moonfly")
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,51 +1,24 @@
|
|||||||
|
local function find_link_source(name)
|
||||||
|
local hl = vim.api.nvim_get_hl(0, { name = "NvimTreeFileIcon" })
|
||||||
|
while hl.link do
|
||||||
|
hl = vim.api.nvim_get_hl(0, { name = hl.link })
|
||||||
|
end
|
||||||
|
|
||||||
|
return hl
|
||||||
|
end
|
||||||
|
|
||||||
local function override_highlights()
|
local function override_highlights()
|
||||||
-- Git
|
-- File Icon
|
||||||
vim.cmd.highlight({
|
local hl = find_link_source("NvimTreeFileIcon")
|
||||||
"link NvimTreeGitDeletedIcon MoonflyTurquoise",
|
vim.api.nvim_set_hl(0, "NvimTreeFileIcon", { fg = hl.fg, bg = nil })
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitDirtyIcon MoonflyTurquoise",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitIgnoredIcon Comment",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitMergeIcon MoonflyCrimson",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitNewIcon MoonflyOrchid",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitRenamedIcon MoonflyTurquoise",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeGitStagedIcon MoonflyGreen",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Bookmarks
|
-- Symlink Icon
|
||||||
vim.cmd.highlight({
|
hl = find_link_source("NvimTreeSymlinkIcon")
|
||||||
"link NvimTreeBookmarkHL MoonflyYellowLineActive",
|
vim.api.nvim_set_hl(
|
||||||
bang = true,
|
0,
|
||||||
})
|
"NvimTreeSymlinkIcon",
|
||||||
|
{ fg = hl.fg, bg = nil }
|
||||||
-- Clipboard
|
)
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeCutHL MoonflyRedLineActive",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Modified
|
|
||||||
vim.cmd.highlight({
|
|
||||||
"link NvimTreeModifiedIcon MoonflyTurquoise",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function disable_highlights()
|
local function disable_highlights()
|
||||||
@@ -127,8 +100,6 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
override_highlights()
|
|
||||||
|
|
||||||
local signs = require("ow.lsp").diagnostic_signs
|
local signs = require("ow.lsp").diagnostic_signs
|
||||||
require("nvim-tree").setup({
|
require("nvim-tree").setup({
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
@@ -280,6 +251,7 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
override_highlights()
|
||||||
disable_highlights()
|
disable_highlights()
|
||||||
|
|
||||||
require("nvim-tree.api").tree.toggle({
|
require("nvim-tree.api").tree.toggle({
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---@type LazyPluginSpec
|
||||||
|
return {
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
-- enabled = false,
|
||||||
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
|
config = function()
|
||||||
|
local c = require("onedark.palette").dark
|
||||||
|
local opts = {
|
||||||
|
style = "dark",
|
||||||
|
highlights = {
|
||||||
|
NormalFloat = { bg = c.bg0 },
|
||||||
|
FloatBorder = { bg = c.bg0 },
|
||||||
|
TabLineSel = { fg = c.fg, bg = c.bg0 }
|
||||||
|
},
|
||||||
|
}
|
||||||
|
require("onedark").setup(opts)
|
||||||
|
-- Enable theme
|
||||||
|
require("onedark").load()
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user