hard contrast gruvbox

This commit is contained in:
Tiago Sousa 2024-03-17 15:44:52 +00:00
parent 533602e263
commit 450e658c97
Signed by: tiago
SSH key fingerprint: SHA256:rOmjD81ZIhKdCkFWS9UIKdBi4UByF5x3hRH/0YeXsPI
8 changed files with 79 additions and 71 deletions

View file

@ -1,7 +1,7 @@
! hard *.background: #1D2021
! soft ! *.background: #32302F ! soft ! *.background: #32302F
! medium ! medium *.background: #282828
*.background: #282828 ! hard
*.background: #1D2021
*.foreground: #D4BE98 *.foreground: #D4BE98

View file

@ -1,9 +1,9 @@
fish_color_normal D4BE98 fish_color_normal D4BE98
fish_color_command A9B665 fish_color_command A9B665
fish_color_keyword 7DAEA3 fish_color_keyword 7DAEA3
fish_color_quote D8A657 fish_color_quote 89B482
fish_color_redirection D4BE98 fish_color_redirection E78A4E
fish_color_end E78A4E fish_color_end 7C6F64
fish_color_error EA6962 fish_color_error EA6962
fish_color_param D4BE98 fish_color_param D4BE98
fish_color_comment 7C6F64 fish_color_comment 7C6F64
@ -11,7 +11,7 @@ fish_color_selection --background=504945
fish_color_search_match --background=504945 fish_color_search_match --background=504945
fish_color_operator A9B665 fish_color_operator A9B665
fish_color_escape 7DAEA3 fish_color_escape 7DAEA3
fish_color_autosuggestion 5A524C fish_color_autosuggestion 7C6F64
fish_pager_color_progress 8F3F71 fish_pager_color_progress 8F3F71
fish_pager_color_prefix 89B482 fish_pager_color_prefix 89B482

View file

@ -41,11 +41,12 @@ return {
"sainnhe/gruvbox-material", "sainnhe/gruvbox-material",
priority = 1000, priority = 1000,
config = function() config = function()
local contrast = "medium" local contrast = "hard"
if background == "light" then if background == "light" then
contrast = "soft" contrast = "soft"
end end
vim.g.gruvbox_material_background = contrast vim.g.gruvbox_material_background = contrast
-- Available values: `'material'`, `'mix'`, `'original'`
vim.g.gruvbox_material_foreground = "material" vim.g.gruvbox_material_foreground = "material"
SetColor() SetColor()
end, end,

View file

@ -38,15 +38,16 @@ return {
mapping = { mapping = {
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), ["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), ["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }), ["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-e>"] = cmp.mapping.abort(), ["<C-e>"] = cmp.mapping.abort(),
["<C-y>"] = cmp.mapping.confirm({ ["<C-y>"] = cmp.mapping(
cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Insert, behavior = cmp.ConfirmBehavior.Insert,
select = true, select = true,
}), }),
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }), { "i", "c" }
),
["<C-l>"] = cmp.mapping(function() ["<C-l>"] = cmp.mapping(function()
if luasnip.expand_or_jumpable() then if luasnip.expand_or_jumpable() then
luasnip.expand_or_jump() luasnip.expand_or_jump()
@ -57,6 +58,20 @@ return {
luasnip.jump(-1) luasnip.jump(-1)
end end
end), end),
["<C-Space>"] = cmp.mapping({
i = cmp.mapping.complete(),
c = function(
_ --[[fallback]]
)
if cmp.visible() then
if not cmp.confirm({ select = true }) then
return
end
else
cmp.complete()
end
end,
}),
}, },
formatting = { formatting = {
@ -175,7 +190,6 @@ return {
vim.keymap.set("n", "]d", vim.diagnostic.goto_next) vim.keymap.set("n", "]d", vim.diagnostic.goto_next)
vim.keymap.set("n", "<leader>ve", vim.diagnostic.setloclist) vim.keymap.set("n", "<leader>ve", vim.diagnostic.setloclist)
-- autocmd LSP keybinds -- autocmd LSP keybinds
vim.api.nvim_create_autocmd("LspAttach", { vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("TsousaLspConfig", {}), group = vim.api.nvim_create_augroup("TsousaLspConfig", {}),

View file

@ -38,5 +38,5 @@ return {
exclude = {}, -- list of file types to exclude highlighting exclude = {}, -- list of file types to exclude highlighting
}, },
}) })
end end,
} }

View file

@ -33,10 +33,10 @@ font-2 = inter:size=10:weight=regular;2
[bar/desktop] [bar/desktop]
inherit = section/base inherit = section/base
width = 99.7% ; width = 99.7%
height = 24pt height = 24pt
offset-x = 0.15% ; offset-x = 0.15%
offset-y = 0.4% ; offset-y = 0.4%
;radius = 8 ;radius = 8
modules-left = i3 sep title modules-left = i3 sep title
@ -58,12 +58,9 @@ wm-restack = i3
[bar/laptop] [bar/laptop]
inherit = section/base inherit = section/base
; width = 99.5% ; width = 99.5%
width = 100%
height = 24pt height = 24pt
; offset-x = 0.3% ; offset-x = 0.3%
; offset-y = 0.5% ; offset-y = 0.5%
offset-x = 0%
offset-y = 0%
;radius = 8 ;radius = 8
modules-left = i3 sep title modules-left = i3 sep title
@ -84,13 +81,9 @@ wm-restack = i3
[bar/secondary] [bar/secondary]
inherit = section/base inherit = section/base
; width = 99.5% ; width = 99.5%
width = 100%
height = 24pt height = 24pt
; offset-x = 0.3% ; offset-x = 0.3%
; offset-y = 0.5% ; offset-y = 0.5%
offset-x = 0%
offset-y = 0%
;radius = 8
modules-left = i3 modules-left = i3
modules-center = date dot time modules-center = date dot time

View file

@ -1,6 +1,6 @@
* { * {
background: #282828FF; background: #1D2021FF;
background-alt: #1D2021FF; background-alt: #282828FF;
foreground: #D4BE98FF; foreground: #D4BE98FF;
selected: #7DAEA3FF; selected: #7DAEA3FF;
active: #A9B665FF; active: #A9B665FF;

View file

@ -4,7 +4,7 @@ set -ag terminal-overrides ",*:RGB"
unbind C-b unbind C-b
set-option -g prefix C-a set-option -g prefix C-a
bind-key C-a send-prefix bind-key C-a send-prefix
set -g status-style 'bg=#282828 fg=#D4BE98' set -g status-style 'bg=#1D2021 fg=#D4BE98'
set-option -g status-position top set-option -g status-position top
set-option -g status-right "" set-option -g status-right ""
set -g status-left-length 20 set -g status-left-length 20