diff --git a/lua/plugins/cmp/config.lua b/lua/plugins/cmp/config.lua index 2235f74..8cc4622 100644 --- a/lua/plugins/cmp/config.lua +++ b/lua/plugins/cmp/config.lua @@ -15,7 +15,7 @@ local formatting_style = { fields = field_arrangement[cmp_style] or { "abbr", "kind", "menu" }, format = function(_, item) - local icons = require("nvchad.icons.lspkind") + local icons = require("plugins.icons.lsp") local icon = (cmp_ui.icons and icons[item.kind]) or "" if cmp_style == "atom" or cmp_style == "atom_colored" then diff --git a/lua/plugins/icons/file.lua b/lua/plugins/icons/file.lua new file mode 100644 index 0000000..9ea8aef --- /dev/null +++ b/lua/plugins/icons/file.lua @@ -0,0 +1,146 @@ +return { + default_icon = { + icon = "󰈚", + name = "Default", + }, + + c = { + icon = "", + name = "c", + }, + + css = { + icon = "", + name = "css", + }, + + dart = { + icon = "", + name = "dart", + }, + + deb = { + icon = "", + name = "deb", + }, + + Dockerfile = { + icon = "", + name = "Dockerfile", + }, + + html = { + icon = "", + name = "html", + }, + + jpeg = { + icon = "󰉏", + name = "jpeg", + }, + + jpg = { + icon = "󰉏", + name = "jpg", + }, + + js = { + icon = "󰌞", + name = "js", + }, + + kt = { + icon = "󱈙", + name = "kt", + }, + + lock = { + icon = "󰌾", + name = "lock", + }, + + lua = { + icon = "", + name = "lua", + }, + + mp3 = { + icon = "󰎆", + name = "mp3", + }, + + mp4 = { + icon = "", + name = "mp4", + }, + + out = { + icon = "", + name = "out", + }, + + png = { + icon = "󰉏", + name = "png", + }, + + py = { + icon = "", + name = "py", + }, + + ["robots.txt"] = { + icon = "󰚩", + name = "robots", + }, + + toml = { + icon = "", + name = "toml", + }, + + ts = { + icon = "󰛦", + name = "ts", + }, + + ttf = { + icon = "", + name = "TrueTypeFont", + }, + + rb = { + icon = "", + name = "rb", + }, + + rpm = { + icon = "", + name = "rpm", + }, + + vue = { + icon = "󰡄", + name = "vue", + }, + + woff = { + icon = "", + name = "WebOpenFontFormat", + }, + + woff2 = { + icon = "", + name = "WebOpenFontFormat2", + }, + + xz = { + icon = "", + name = "xz", + }, + + zip = { + icon = "", + name = "zip", + }, +} diff --git a/lua/plugins/nvim-tree/web-dev-icons.lua b/lua/plugins/icons/init.lua similarity index 78% rename from lua/plugins/nvim-tree/web-dev-icons.lua rename to lua/plugins/icons/init.lua index 902e3c5..28fe132 100644 --- a/lua/plugins/nvim-tree/web-dev-icons.lua +++ b/lua/plugins/icons/init.lua @@ -1,7 +1,7 @@ local M = { "nvim-tree/nvim-web-devicons", opts = function() - return { override = require("nvchad.icons.devicons") } + return { override = require("plugins.icons.file") } end, config = function(_, opts) dofile(vim.g.base46_cache .. "devicons") diff --git a/lua/plugins/icons/lsp.lua b/lua/plugins/icons/lsp.lua new file mode 100644 index 0000000..98f6764 --- /dev/null +++ b/lua/plugins/icons/lsp.lua @@ -0,0 +1,42 @@ +return { + Namespace = "󰌗", + Text = "󰉿", + Method = "󰆧", + Function = "󰆧", + Constructor = "", + Field = "󰜢", + Variable = "󰀫", + Class = "󰠱", + Interface = "", + Module = "", + Property = "󰜢", + Unit = "󰑭", + Value = "󰎠", + Enum = "", + Keyword = "󰌋", + Snippet = "", + Color = "󰏘", + File = "󰈚", + Reference = "󰈇", + Folder = "󰉋", + EnumMember = "", + Constant = "󰏿", + Struct = "󰙅", + Event = "", + Operator = "󰆕", + TypeParameter = "󰊄", + Table = "", + Object = "󰅩", + Tag = "", + Array = "[]", + Boolean = "", + Number = "", + Null = "󰟢", + String = "󰉿", + Calendar = "", + Watch = "󰥔", + Package = "", + Copilot = "", + Codeium = "", + TabNine = "", +}