mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(starship): hinted path
This commit is contained in:
parent
804fbc9a3a
commit
f12a9fae4e
6 changed files with 97 additions and 27 deletions
72
.config/nvim/after/plugin/color-mode.lua
Normal file
72
.config/nvim/after/plugin/color-mode.lua
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
vim.cmd.colorscheme "one-nvim"
|
||||
|
||||
local use_light = function()
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
callback = function()
|
||||
-- LSP window border color
|
||||
vim.cmd("highlight NormalFloat guibg=white")
|
||||
vim.cmd("highlight FloatBorder guifg=black guibg=white")
|
||||
|
||||
-- Tune virtual text colors
|
||||
-- vim.cmd ("highlight DiagnosticError gui=bold")
|
||||
-- vim.cmd ("highlight DiagnosticWarn gui=italic")
|
||||
-- vim.cmd ("highlight DiagnosticInfo guibg=black guibg=italic")
|
||||
-- vim.cmd ("highlight DiagnosticHint guibg=black")
|
||||
|
||||
-- TreesitterContext border
|
||||
vim.cmd("highlight TreesitterContext guibg=#EEEEEE")
|
||||
vim.cmd("highlight TreesitterContextBottom guibg=#EEEEEE gui=underline guisp=Grey")
|
||||
|
||||
-- Diff colors override
|
||||
vim.cmd("highlight DiffAdd guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffChange guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffDelete guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffText guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffAdded guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffFile guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffNewFile guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffLine guibg=#f0f0f0")
|
||||
vim.cmd("highlight DiffRemoved guibg=#f0f0f0")
|
||||
end,
|
||||
group = vim.api.nvim_create_augroup("MyColorOverride", { clear = true }),
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
vim.o.background = "light"
|
||||
end
|
||||
|
||||
local use_dark = function()
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
callback = function()
|
||||
-- LSP window border color
|
||||
vim.cmd("highlight NormalFloat guibg=black")
|
||||
vim.cmd("highlight FloatBorder guifg=white guibg=black")
|
||||
|
||||
-- Tune virtual text colors
|
||||
-- vim.cmd "highlight DiagnosticError gui=bold"
|
||||
-- vim.cmd "highlight DiagnosticWarn gui=italic"
|
||||
-- vim.cmd "highlight DiagnosticInfo guifg=white guibg=black"
|
||||
-- vim.cmd "highlight DiagnosticHint guifg=white guibg=black"
|
||||
|
||||
-- TreesitterContext border
|
||||
vim.cmd("highlight TreesitterContext guibg=#555555")
|
||||
vim.cmd("highlight TreesitterContextBottom guibg=#555555 gui=underline guisp=LightGrey")
|
||||
|
||||
-- Diff colors override
|
||||
vim.cmd("highlight DiffAdd guibg=#303030")
|
||||
vim.cmd("highlight DiffChange guibg=#303030")
|
||||
vim.cmd("highlight DiffDelete guibg=#303030")
|
||||
vim.cmd("highlight DiffText guibg=#303030")
|
||||
vim.cmd("highlight DiffAdded guibg=#303030")
|
||||
vim.cmd("highlight DiffFile guibg=#303030")
|
||||
vim.cmd("highlight DiffNewFile guibg=#303030")
|
||||
vim.cmd("highlight DiffLine guibg=#303030")
|
||||
vim.cmd("highlight DiffRemoved guibg=#303030")
|
||||
end,
|
||||
group = vim.api.nvim_create_augroup("MyColorOverride", { clear = true }),
|
||||
pattern = "*",
|
||||
})
|
||||
vim.o.background = "dark"
|
||||
end
|
||||
|
||||
use_light()
|
||||
|
|
@ -4,8 +4,8 @@ local ui = require "harpoon.ui"
|
|||
local mark = require "harpoon.mark"
|
||||
|
||||
-- add and view
|
||||
vim.keymap.set({ 'n', 'i' }, '<A-a>', function() mark.add_file() end, { desc = "add file to harpoon" })
|
||||
vim.keymap.set({ 'n', 'i' }, '<A-e>', function() ui.toggle_quick_menu() end, { desc = "show harpoon menu" })
|
||||
vim.keymap.set({ 'n', 'i' }, '<A-c>', function() mark.add_file() end, { desc = "add file to harpoon" })
|
||||
vim.keymap.set({ 'n', 'i' }, '<A-g>', function() ui.toggle_quick_menu() end, { desc = "show harpoon menu" })
|
||||
|
||||
-- switch it up!
|
||||
vim.keymap.set({ 'n', 'i' }, '<A-h>', function() ui.nav_file(1) end, { desc = "harpoon 1 (the magic finger)" })
|
||||
|
|
|
|||
|
|
@ -91,7 +91,3 @@ require("lazy").setup({
|
|||
}, {
|
||||
install = { colorscheme = { "catppuccin" } },
|
||||
})
|
||||
|
||||
vim.schedule(function()
|
||||
vim.cmd.colorscheme "catppuccin-frappe"
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue