Fix not showing proper colors for icons

This commit is contained in:
Michael Peters 2022-02-28 18:24:14 -06:00
parent e2b590875b
commit fcd0382033
3 changed files with 19 additions and 12 deletions

View File

@ -2,4 +2,5 @@
require('settings')
require('keybinds')
require('plugins')
require('autocommands')

18
lua/autocommands.lua Normal file
View File

@ -0,0 +1,18 @@
-- For some reason, setting the color scheme has to be in an autocommand
vim.cmd([[
augroup MichaelColorScheme
autocmd!
autocmd VimEnter * colorscheme darkplus
augroup end
]])
-- For some reason, the setup function isn't calling this... It might be because we are setting the color
-- scheme through an autocommand too
vim.cmd([[
augroup NvimWebDeviconsColorFix
autocmd!
autocmd VimEnter * lua require'nvim-web-devicons'.set_up_highlights()
augroup end
]])

View File

@ -22,10 +22,6 @@ packer.startup {
use { 'nathom/filetype.nvim', config = function() vim.g.did_load_filetypes = 1 end }
-- General Assets/Resources
-- TODO: Currently, you have to run :PackerSync in order to get the colors working...
-- Actually was :PackerCompile.
-- This makes me think there was just a dependency problem somewhere here...
-- Now, the config may be bjorked
use { 'kyazdani42/nvim-web-devicons', config = function() require'configs.icons'.config() end }
--
@ -110,11 +106,3 @@ packer.startup {
}
}
-- For some reason, setting the color scheme has to be in an autocommand
vim.cmd([[
augroup colorscheme
autocmd!
autocmd VimEnter * colorscheme darkplus
augroup end
]])