feat: mini.icons
This commit is contained in:
parent
e9902fad73
commit
5e7f438410
4 changed files with 29 additions and 1 deletions
|
@ -32,6 +32,9 @@ with final.pkgs.lib; let
|
|||
# Base
|
||||
lz-n
|
||||
snacks-nvim
|
||||
|
||||
# UI
|
||||
mini-icons
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
|
|
|
@ -11,4 +11,4 @@ require('autocmds')
|
|||
|
||||
require('snacks-nvim')
|
||||
|
||||
-- require('lz.n').load('plugins')
|
||||
require('lz.n').load('plugins')
|
||||
|
|
5
nvim/lua/plugins/ui/init.lua
Normal file
5
nvim/lua/plugins/ui/init.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
local req = require('lib.marleyvim').localRequire('plugins.ui')
|
||||
|
||||
return {
|
||||
req('mini-icons'),
|
||||
}
|
20
nvim/lua/plugins/ui/mini-icons.lua
Normal file
20
nvim/lua/plugins/ui/mini-icons.lua
Normal 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,
|
||||
}
|
Loading…
Reference in a new issue