Compare commits
2 commits
9b9389592e
...
7954844ff6
Author | SHA1 | Date | |
---|---|---|---|
7954844ff6 | |||
afa495919c |
4 changed files with 14 additions and 11 deletions
|
@ -12,7 +12,7 @@ set fish_emoji_width 2
|
|||
# Colors
|
||||
set fish_color_command --bold
|
||||
set fish_color_comment --italics --dim
|
||||
set fish_color_autosuggestion --italics --bold red
|
||||
set fish_color_autosuggestion --italics --bold --dim
|
||||
set fish_color_cancel
|
||||
set fish_color_command --bold
|
||||
set fish_color_comment --italics --dim
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
|
||||
fish_prompt.body = ''
|
||||
echo -e "\033[s\033[$LINES;1H\033[1;2;38;5;238m$(string pad -c '┄' -w $COLUMNS (fish_jj_prompt || fish_vcs_prompt))\033[0m\033[u"
|
||||
string join "" -- (set_color --italics) (prompt_hostname) ':' (prompt_pwd --full-length-dirs=4) (set_color --bold) ' ❯ ' (set_color normal)
|
||||
string join "" -- (set_color --dim) (prompt_hostname) ':' (prompt_pwd --full-length-dirs=4) (set_color --bold normal) ' ❯ ' (set_color normal)
|
||||
'';
|
||||
|
||||
transient_prompt_func.body = ''
|
||||
|
|
|
@ -29,7 +29,6 @@ local colors = {
|
|||
change = hsl(41, 80, 80),
|
||||
change_quarter = hsl(224, 100, 85),
|
||||
delete = hsl(350, 100, 40),
|
||||
delete_quarter = hsl(350, 100, 85),
|
||||
|
||||
dialog_bg = hsl(224, 5, 92),
|
||||
selection = hsl(270, 75, 92),
|
||||
|
@ -80,7 +79,10 @@ local colors = {
|
|||
delete = hsl(350, 100, 40),
|
||||
delete_quarter = hsl(350, 100, 15),
|
||||
|
||||
selection = hsl(213, 60, 40),
|
||||
selection = hsl(218, 30, 20),
|
||||
|
||||
search_bg = hsl(43, 100, 8),
|
||||
search_fg = hsl(43, 100, 85),
|
||||
|
||||
cmp_bg = hsl(218, 30, 13),
|
||||
cmp_fg = hsl(218, 30, 80),
|
||||
|
@ -114,6 +116,9 @@ local setupGroups = function(c)
|
|||
|
||||
Visual = { bg = c.selection },
|
||||
|
||||
Search = { bg = c.search_bg, fg = c.search_fg },
|
||||
CurSearch = { link = "Search" },
|
||||
|
||||
Comment = { fg = c.comment, italic = true, bold = true },
|
||||
CommentError = { fg = c.comment_error, italic = true, bold = true },
|
||||
["@comment.note"] = { link = "Comment" },
|
||||
|
@ -157,8 +162,8 @@ local setupGroups = function(c)
|
|||
DiagnosticSignHint = { fg = c.diagnostic_hint },
|
||||
DiagnosticSignInfo = { fg = c.diagnostic_info },
|
||||
DiagnosticSignWarn = { fg = c.diagnostic_warning },
|
||||
LineNr = { fg = c.dimmed, italic = true },
|
||||
CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle, bold = true },
|
||||
LineNr = { fg = c.dimmed },
|
||||
CursorLineNr = { fg = c.dimmed_subtle, bg = c.highlight_subtle },
|
||||
|
||||
IndentLine = { fg = c.dimmed },
|
||||
IndentLineCurrent = { fg = c.dimmed_subtle },
|
||||
|
|
|
@ -69,7 +69,6 @@ vim.o.timeoutlen = 10
|
|||
vim.o.timeout = true
|
||||
vim.o.updatetime = 50
|
||||
|
||||
|
||||
-- Use rg
|
||||
vim.o.grepprg = [[rg --glob "!.jj" --glob "!.git" --no-heading --vimgrep --follow $*]]
|
||||
vim.opt.grepformat = vim.opt.grepformat ^ { "%f:%l:%c:%m" }
|
||||
|
@ -150,10 +149,10 @@ vim.keymap.set("n", "K", function()
|
|||
max_width = 80,
|
||||
offset_x = 2,
|
||||
}
|
||||
end, {})
|
||||
end, {})
|
||||
vim.keymap.set("n", "<Leader>ub", function()
|
||||
vim.o.background = (vim.o.background == "light" and "dark" or "light")
|
||||
end, opts("Toggle dark/light background"))
|
||||
end, opts("Toggle dark/light background"))
|
||||
vim.keymap.set("n", "<Leader>uc", function()
|
||||
if vim.g.colors_name == "dieter-nocolor" then
|
||||
vim.cmd [[colorscheme dieter]]
|
||||
|
@ -162,5 +161,4 @@ vim.keymap.set("n", "<Leader>uc", function()
|
|||
end
|
||||
end, opts("Toggle Dieter colors"))
|
||||
vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inlay hints"))
|
||||
vim.keymap.set("n", "<Leader>uw","<cmd>set invwrap<cr>", opts("Toggle line wrapping"))
|
||||
|
||||
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))
|
||||
|
|
Loading…
Reference in a new issue