Skip to content

Commit

Permalink
feat(ui): move to mini.icons
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbe committed Aug 5, 2024
1 parent 330ce60 commit 2dd0d89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
26 changes: 22 additions & 4 deletions lua/tired/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ return {
-- stylua: ignore
{
function() return "" .. require("dap").status() end,
cond = function () return package.loaded["dap"] and require("dap").status() ~= "" end,
color = LazyVim.ui.fg("Debug"),
cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end,
color = function() return LazyVim.ui.fg("Debug") end,
},
{
require("lazy.status").updates,
cond = require("lazy.status").has_updates,
color = LazyVim.ui.fg "Special",
color = function() return LazyVim.ui.fg "Special" end,
},
{
icon = { icons.mics.ActiveLSP, align = "left" },
Expand Down Expand Up @@ -176,5 +176,23 @@ return {
},

-- icons
{ "nvim-tree/nvim-web-devicons", lazy = true },
{
"echasnovski/mini.icons",
lazy = true,
opts = {
file = {
[".keep"] = { glyph = "󰊢", hl = "MiniIconsGrey" },
["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
},
filetype = {
dotenv = { glyph = "", hl = "MiniIconsYellow" },
},
},
init = function()
package.preload["nvim-web-devicons"] = function()
require("mini.icons").mock_nvim_web_devicons()
return package.loaded["nvim-web-devicons"]
end
end,
},
}
2 changes: 1 addition & 1 deletion nix/pkgs/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ let
rustaceanvim

# Dependencies
nvim-web-devicons
mini-icons
nui-nvim
plenary-nvim
dressing-nvim
Expand Down

0 comments on commit 2dd0d89

Please sign in to comment.