Squashed 'etc/nvim/' content from commit 6da6d4f

git-subtree-dir: etc/nvim
git-subtree-split: 6da6d4ffb9395ebf9be5d2bfb578782cdd6de362
This commit is contained in:
2025-12-26 11:35:16 +01:00
commit d69ca1091c
36 changed files with 1218 additions and 0 deletions

31
lua/plugin/gruvbox.lua Normal file
View File

@@ -0,0 +1,31 @@
---@type LazySpec
return { {
'ellisonleao/gruvbox.nvim',
lazy = false,
dependencies = { 'johnfrankmorgan/whitespace.nvim' },
priority = 1000,
---@type GruvboxConfig
opts = {
styles = {
comments = { italic = true }
}
},
config = function(_, opts)
local colour = require('gruvbox')
colour.setup(opts)
vim.cmd.colorscheme('gruvbox')
_G.userdat.palette = colour.palette
-- non-essential configuration should be put in here
Autocmd('VimEnter', {
callback =
function()
-- spell highlight must be grey
for _, spell in pairs { 'SpellBad', 'SpellCap', 'SpellRare', 'SpellLocal' } do
vim.api.nvim_set_hl(0, spell,
{ fg = nil, bg = nil, sp = _G.userdat.palette.gray, undercurl = true })
end
end
})
end
} }