[2024-05-09] Adding updated nvim config, stripping down .vimrc

This commit is contained in:
Andrew Conlin 2024-05-09 18:23:20 +01:00 committed by Andrew Conlin
parent a2b0423cc9
commit 762776ef54
6 changed files with 103 additions and 44 deletions

View file

@ -0,0 +1,20 @@
-- :filter Gruvbox* highlight
local hex = function(n)
return string.format("#%06x", n)
end
local colo = function(n)
colour = vim.api.nvim_get_hl_by_name(n, true)
return hex(colour.foreground)
end
return {
bg = colo("GruvboxBg0"),
black = '#000000',
fg = colo("GruvboxFg0"),
green = colo("GruvboxGreen"),
blue = colo("GruvboxBlue"),
orange = colo("GruvboxOrange"),
red = colo("GruvboxRed"),
purple = colo("GruvboxPurple"),
white = '#FFFFFF',
yellow = colo("GruvboxYellow")
}