From f225a1f8dbb93dbdad166f9764680b7250c7578d Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Fri, 7 Jun 2024 22:53:57 +0200 Subject: [PATCH] refactor(plugins/astroui): use icons from utils --- plugins/astroui/default.nix | 3 +- plugins/astroui/icons.nix | 61 -------------------------------- plugins/astroui/status/modes.nix | 1 - 3 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 plugins/astroui/icons.nix diff --git a/plugins/astroui/default.nix b/plugins/astroui/default.nix index c7a7291..eea34b9 100644 --- a/plugins/astroui/default.nix +++ b/plugins/astroui/default.nix @@ -1,8 +1,7 @@ # homepage: https://github.com/AstroNvim/astroui -{ helpers, lib, pkgs, ... }: +{ helpers, icons, lib, pkgs, ... }: let - icons = import ./icons.nix; status = import ./status; in { diff --git a/plugins/astroui/icons.nix b/plugins/astroui/icons.nix deleted file mode 100644 index 5a4a0ac..0000000 --- a/plugins/astroui/icons.nix +++ /dev/null @@ -1,61 +0,0 @@ -# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astroui.lua#L7-L66 -{ - ActiveLSP = ""; - ActiveTS = ""; - ArrowLeft = ""; - ArrowRight = ""; - Bookmarks = ""; - BufferClose = "󰅖"; - DapBreakpoint = ""; - DapBreakpointCondition = ""; - DapBreakpointRejected = ""; - DapLogPoint = "󰛿"; - DapStopped = "󰁕"; - Debugger = ""; - DefaultFile = "󰈙"; - Diagnostic = "󰒡"; - DiagnosticError = ""; - DiagnosticHint = "󰌵"; - DiagnosticInfo = "󰋼"; - DiagnosticWarn = ""; - Ellipsis = "…"; - Environment = ""; - FileNew = ""; - FileModified = ""; - FileReadOnly = ""; - FoldClosed = ""; - FoldOpened = ""; - FoldSeparator = " "; - FolderClosed = ""; - FolderEmpty = ""; - FolderOpen = ""; - Git = "󰊢"; - GitAdd = ""; - GitBranch = ""; - GitChange = ""; - GitConflict = ""; - GitDelete = ""; - GitIgnored = "◌"; - GitRenamed = "➜"; - GitSign = "▎"; - GitStaged = "✓"; - GitUnstaged = "✗"; - GitUntracked = "★"; - LSPLoading1 = ""; - LSPLoading2 = "󰀚"; - LSPLoading3 = ""; - MacroRecording = ""; - Package = "󰏖"; - Paste = "󰅌"; - Refresh = ""; - Search = ""; - Selected = "❯"; - Session = "󱂬"; - Sort = "󰒺"; - Spellcheck = "󰓆"; - Tab = "󰓩"; - TabClose = "󰅙"; - Terminal = ""; - Window = ""; - WordFile = "󰈭"; -} diff --git a/plugins/astroui/status/modes.nix b/plugins/astroui/status/modes.nix index 278ab35..83564a6 100644 --- a/plugins/astroui/status/modes.nix +++ b/plugins/astroui/status/modes.nix @@ -3,7 +3,6 @@ # Forced to use raw Lua value to avoid Nix transforming special chars to unicode sequence __raw = '' { - --findme ["n"] = { "NORMAL", "normal" }, ["no"] = { "OP", "normal" }, ["nov"] = { "OP", "normal" },