feat: mini.icons

This commit is contained in:
punkfairie 2024-11-29 18:07:52 -08:00
parent e9902fad73
commit 5e7f438410
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
4 changed files with 29 additions and 1 deletions

View file

@ -32,6 +32,9 @@ with final.pkgs.lib; let
# Base
lz-n
snacks-nvim
# UI
mini-icons
];
extraPackages = with pkgs; [

View file

@ -11,4 +11,4 @@ require('autocmds')
require('snacks-nvim')
-- require('lz.n').load('plugins')
require('lz.n').load('plugins')

View file

@ -0,0 +1,5 @@
local req = require('lib.marleyvim').localRequire('plugins.ui')
return {
req('mini-icons'),
}

View file

@ -0,0 +1,20 @@
return {
'mini.icons',
after = function()
require('mini.icons').setup({
file = {
['.keep'] = { glyph = '󰊢', hl = 'MiniIconsGrey' },
['devcontainer.json'] = { glyph = '', hl = 'MiniIconsAzure' },
},
filetype = {
dotenv = { glyph = '󰌋', hl = 'MiniIconsYellow' },
},
})
package.preload['nvim-web-devicons'] = function()
require('mini.icons').mock_nvim_web_devicons()
return package.loaded['nvim-web-devicons']
end
end,
}