neovim colors.lua based on colorscheme

This commit is contained in:
Noah Masur
2022-07-09 21:57:56 +00:00
parent a10e33c1e1
commit cc801b4981
4 changed files with 28 additions and 18 deletions

View File

@ -11,7 +11,11 @@
xdg.configFile = {
"nvim/init.lua".source = ./init.lua;
"nvim/lua".source = ./lua;
"nvim/lua" = {
source = ./lua;
recursive = true; # Allows adding more files
};
"nvim/lua/packer/colors.lua".text = config.gui.colorscheme.neovimConfig;
};
programs.git.extraConfig.core.editor = "nvim";

View File

@ -1,17 +0,0 @@
local M = {}
M.packer = function(use)
-- Colorscheme
use({
"morhetz/gruvbox",
config = function()
vim.g.gruvbox_italic = 1
vim.cmd([[
autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
colorscheme gruvbox
]])
end,
})
end
return M