refactor(core): switch to astromars colorscheme from cyberdream and clean up dankcolors plugin
This commit is contained in:
1 parent
e4b1da80e3
commit
74c901f261
4 files changed
+12
-118
No files matched your search
@@ -3,7 +3,7 @@ return {
|
|||||||
"AstroNvim/astroui",
|
"AstroNvim/astroui",
|
||||||
---@type AstroUIOpts
|
---@type AstroUIOpts
|
||||||
opts = {
|
opts = {
|
||||||
colorscheme = "cyberdream",
|
colorscheme = "astromars",
|
||||||
-- add new user interface icon
|
-- add new user interface icon
|
||||||
icons = {
|
icons = {
|
||||||
VimIcon = "",
|
VimIcon = "",
|
||||||
|
|||||||
@@ -1,91 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"RRethy/base16-nvim",
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
require('base16-colorscheme').setup({
|
|
||||||
base00 = '#0A0A0F',
|
|
||||||
base01 = '#0A0A0F',
|
|
||||||
base02 = '#5c6370',
|
|
||||||
base03 = '#5c6370',
|
|
||||||
base04 = '#abb2bf',
|
|
||||||
base05 = '#ffffff',
|
|
||||||
base06 = '#ffffff',
|
|
||||||
base07 = '#ffffff',
|
|
||||||
base08 = '#e05f68',
|
|
||||||
base09 = '#e05f68',
|
|
||||||
base0A = '#57e9e8',
|
|
||||||
base0B = '#8ee086',
|
|
||||||
base0C = '#38838d',
|
|
||||||
base0D = '#57e9e8',
|
|
||||||
base0E = '#2e9986',
|
|
||||||
base0F = '#2e9986',
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Visual', {
|
|
||||||
bg = '#5c6370',
|
|
||||||
fg = '#ffffff',
|
|
||||||
bold = true
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, 'Statusline', {
|
|
||||||
bg = '#57e9e8',
|
|
||||||
fg = '#0A0A0F',
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, 'LineNr', { fg = '#5c6370' })
|
|
||||||
vim.api.nvim_set_hl(0, 'CursorLineNr', { fg = '#38838d', bold = true })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Statement', {
|
|
||||||
fg = '#2e9986',
|
|
||||||
bold = true
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, 'Keyword', { link = 'Statement' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Repeat', { link = 'Statement' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Conditional', { link = 'Statement' })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Function', {
|
|
||||||
fg = '#57e9e8',
|
|
||||||
bold = true
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, 'Macro', {
|
|
||||||
fg = '#57e9e8',
|
|
||||||
italic = true
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, '@function.macro', { link = 'Macro' })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Type', {
|
|
||||||
fg = '#38838d',
|
|
||||||
bold = true,
|
|
||||||
italic = true
|
|
||||||
})
|
|
||||||
vim.api.nvim_set_hl(0, 'Structure', { link = 'Type' })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'String', {
|
|
||||||
fg = '#8ee086',
|
|
||||||
italic = true
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Operator', { fg = '#abb2bf' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Delimiter', { fg = '#abb2bf' })
|
|
||||||
vim.api.nvim_set_hl(0, '@punctuation.bracket', { link = 'Delimiter' })
|
|
||||||
vim.api.nvim_set_hl(0, '@punctuation.delimiter', { link = 'Delimiter' })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Comment', {
|
|
||||||
fg = '#5c6370',
|
|
||||||
italic = true
|
|
||||||
})
|
|
||||||
|
|
||||||
local current_file_path = vim.fn.stdpath("config") .. "/lua/plugins/dankcolors.lua"
|
|
||||||
if not _G._matugen_theme_watcher then
|
|
||||||
local uv = vim.uv or vim.loop
|
|
||||||
_G._matugen_theme_watcher = uv.new_fs_event()
|
|
||||||
_G._matugen_theme_watcher:start(current_file_path, {}, vim.schedule_wrap(function()
|
|
||||||
local new_spec = dofile(current_file_path)
|
|
||||||
if new_spec and new_spec[1] and new_spec[1].config then
|
|
||||||
new_spec[1].config()
|
|
||||||
print("Theme reload")
|
|
||||||
end
|
|
||||||
end))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+11
-15
@@ -61,11 +61,11 @@ return {
|
|||||||
["/"] = "fuzzy_finder",
|
["/"] = "fuzzy_finder",
|
||||||
["f"] = "filter_on_submit",
|
["f"] = "filter_on_submit",
|
||||||
["<c-x>"] = "clear_filter",
|
["<c-x>"] = "clear_filter",
|
||||||
["<CR>"] = "open_and_close_neotree",
|
["<CR>"] = "open_and_close_neotree",
|
||||||
["<S-CR>"] = "open",
|
["<S-CR>"] = "open",
|
||||||
-- Avante integration
|
-- Avante integration
|
||||||
["<C-a>"] = "avante_add_files",
|
["<C-a>"] = "avante_add_files",
|
||||||
-- Git keybindings from astrocore
|
-- Git keybindings from astrocore
|
||||||
["<C-g>o"] = function() vim.cmd "!gh repo view --web" end,
|
["<C-g>o"] = function() vim.cmd "!gh repo view --web" end,
|
||||||
["<C-g>h"] = function()
|
["<C-g>h"] = function()
|
||||||
require("snacks").terminal("gh dash", {
|
require("snacks").terminal("gh dash", {
|
||||||
@@ -226,23 +226,21 @@ return {
|
|||||||
avante_add_files = function(state)
|
avante_add_files = function(state)
|
||||||
local node = state.tree:get_node()
|
local node = state.tree:get_node()
|
||||||
local filepath = node:get_id()
|
local filepath = node:get_id()
|
||||||
local relative_path = require('avante.utils').relative_path(filepath)
|
local relative_path = require("avante.utils").relative_path(filepath)
|
||||||
|
|
||||||
local sidebar = require('avante').get()
|
local sidebar = require("avante").get()
|
||||||
|
|
||||||
local open = sidebar:is_open()
|
local open = sidebar:is_open()
|
||||||
-- ensure avante sidebar is open
|
-- ensure avante sidebar is open
|
||||||
if not open then
|
if not open then
|
||||||
require('avante.api').ask()
|
require("avante.api").ask()
|
||||||
sidebar = require('avante').get()
|
sidebar = require("avante").get()
|
||||||
end
|
end
|
||||||
|
|
||||||
sidebar.file_selector:add_selected_file(relative_path)
|
sidebar.file_selector:add_selected_file(relative_path)
|
||||||
|
|
||||||
-- remove neo tree buffer
|
-- remove neo tree buffer
|
||||||
if not open then
|
if not open then sidebar.file_selector:remove_selected_file "neo-tree filesystem [1]" end
|
||||||
sidebar.file_selector:remove_selected_file('neo-tree filesystem [1]')
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
-- Refresh patterns when changing directories
|
-- Refresh patterns when changing directories
|
||||||
refresh_patterns = function(state)
|
refresh_patterns = function(state)
|
||||||
@@ -295,9 +293,7 @@ return {
|
|||||||
always_show_by_pattern = {},
|
always_show_by_pattern = {},
|
||||||
visible = function(item)
|
visible = function(item)
|
||||||
-- Hide all symlinks
|
-- Hide all symlinks
|
||||||
if item.type == "link" then
|
if item.type == "link" then return false end
|
||||||
return false
|
|
||||||
end
|
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
hide_by_name = {
|
hide_by_name = {
|
||||||
|
|||||||
@@ -35,14 +35,3 @@ vim.api.nvim_create_autocmd("VimResume", {
|
|||||||
end,
|
end,
|
||||||
desc = "Check for file changes after Screen reattach/resume",
|
desc = "Check for file changes after Screen reattach/resume",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require("cyberdream").setup {
|
|
||||||
variant = "default", -- use "light" for the light variant. Also accepts "auto" to set dark or light colors based on the current value of `vim.o.background`
|
|
||||||
transparent = true,
|
|
||||||
italic_comments = true,
|
|
||||||
hide_fillchars = true,
|
|
||||||
borderless_pickers = true,
|
|
||||||
terminal_colors = true,
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user