From 0e537b06ae0d940eb27abb0ec2187f7b6777ec16 Mon Sep 17 00:00:00 2001 From: Natty Date: Sat, 10 Feb 2024 16:27:42 +0100 Subject: [PATCH] Codicons --- init.lua | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ plugins.lua | 21 ++++++++++++++++++++- 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8417ee6..b4e5fce 100644 --- a/init.lua +++ b/init.lua @@ -11,6 +11,54 @@ local config = { auto_quit = false, remotes = {} }, + icons = { + ActiveLSP = "", + ActiveTS = "󰊟", + ArrowLeft = "", + ArrowRight = "", + BufferClose = "󰅖", + DapBreakpoint = "", + DapBreakpointCondition = "", + DapBreakpointRejected = "", + DapLogPoint = ".>", + DapStopped = "󰁕", + DefaultFile = "", + Diagnostic = "", + DiagnosticError = "", + DiagnosticHint = "", + DiagnosticInfo = "", + DiagnosticWarn = "", + Ellipsis = "…", + FileModified = "", + FileReadOnly = "", + FoldClosed = "", + FoldOpened = "", + FoldSeparator = " ", + FolderClosed = "", + FolderEmpty = "", + FolderOpen = "", + Git = "", + GitAdd = "", + GitBranch = "", + GitChange = "", + GitConflict = "", + GitDelete = "", + GitIgnored = "", + GitRenamed = "", + GitStaged = "", + GitUnstaged = "", + GitUntracked = "", + LSPLoaded = "", + LSPLoading1 = "", + LSPLoading2 = "󰀚", + LSPLoading3 = "", + MacroRecording = "", + Paste = "󰅌", + Spellcheck = "󰓆", + Search = "", + Selected = "", + TabClose = "", + }, colorscheme = "catppuccin", heirline = { separators = { diff --git a/plugins.lua b/plugins.lua index fc2470c..31d586a 100644 --- a/plugins.lua +++ b/plugins.lua @@ -273,5 +273,24 @@ return {{ -- return the final configuration table return opts - end, + end, +}, { + "onsails/lspkind.nvim", + opts = function(_, opts) + -- use codicons preset + opts.preset = "codicons" + -- set some missing symbol types + opts.symbol_map = { + Array = "", + Boolean = "", + Key = "", + Namespace = "", + Null = "", + Number = "", + Object = "", + Package = "", + String = "", + } + return opts + end, }}