Fix not showing proper colors for icons
This commit is contained in:
parent
e2b590875b
commit
fcd0382033
1
init.lua
1
init.lua
@ -2,4 +2,5 @@
|
||||
require('settings')
|
||||
require('keybinds')
|
||||
require('plugins')
|
||||
require('autocommands')
|
||||
|
||||
|
18
lua/autocommands.lua
Normal file
18
lua/autocommands.lua
Normal 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
|
||||
]])
|
||||
|
@ -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
|
||||
]])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user