From d04ce5cca479d51651d0b57d7f0618b6ade074ce Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 13 Jun 2024 01:20:27 +0200 Subject: [PATCH] feat(nvim): add icons globals --- pkgs/nvim/config/icons.nix | 64 ++++++++++++++++++++++++++++++++++++++ pkgs/nvim/default.nix | 5 +-- 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 pkgs/nvim/config/icons.nix diff --git a/pkgs/nvim/config/icons.nix b/pkgs/nvim/config/icons.nix new file mode 100644 index 0000000..7c53f93 --- /dev/null +++ b/pkgs/nvim/config/icons.nix @@ -0,0 +1,64 @@ +{ + misc = { + dots = "󰇘"; + }; + dap = { + Stopped = ["󰁕 " "DiagnosticWarn" "DapStoppedLine"]; + Breakpoint = " "; + BreakpointCondition = " "; + BreakpointRejected = [" " "DiagnosticError"]; + LogPoint = ".>"; + }; + diagnostics = { + Error = " "; + Warn = " "; + Hint = " "; + Info = " "; + }; + git = { + added = " "; + modified = " "; + removed = " "; + }; + kinds = { + Array = " "; + Boolean = "󰨙 "; + Class = " "; + Codeium = "󰘦 "; + Color = " "; + Control = " "; + Collapsed = " "; + Constant = "󰏿 "; + Constructor = " "; + Copilot = " "; + Enum = " "; + EnumMember = " "; + Event = " "; + Field = " "; + File = " "; + Folder = " "; + Function = "󰊕 "; + Interface = " "; + Key = " "; + Keyword = " "; + Method = "󰊕 "; + Module = " "; + Namespace = "󰦮 "; + Null = " "; + Number = "󰎠 "; + Object = " "; + Operator = " "; + Package = " "; + Property = " "; + Reference = " "; + Snippet = " "; + String = " "; + Struct = "󰆼 "; + TabNine = "󰏚 "; + Text = " "; + TypeParameter = " "; + Unit = " "; + Value = " "; + Variable = "󰀫 "; + }; +} diff --git a/pkgs/nvim/default.nix b/pkgs/nvim/default.nix index 2efe8c6..3290e7c 100644 --- a/pkgs/nvim/default.nix +++ b/pkgs/nvim/default.nix @@ -5,9 +5,10 @@ }: let system = pkgs.system; nixvim = inputs.nixvim.legacyPackages.${system}; + icons = import ./config/icons.nix; nixvimModule = { - inherit pkgs; + pkgs = inputs.unstable.legacyPackages.${system}; module = import ./config; - extraSpecialArgs = {}; + extraSpecialArgs = {inherit icons;}; }; in (nixvim.makeNixvimWithModule nixvimModule)