Skip to content

Commit

Permalink
update icons config
Browse files Browse the repository at this point in the history
  • Loading branch information
aolyang committed Dec 10, 2023
1 parent 7abf867 commit 05e3ba3
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/plugins/cmp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
146 changes: 146 additions & 0 deletions lua/plugins/icons/file.lua
Original file line number Diff line number Diff line change
@@ -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",
},
}
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
42 changes: 42 additions & 0 deletions lua/plugins/icons/lsp.lua
Original file line number Diff line number Diff line change
@@ -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 = "",
}

0 comments on commit 05e3ba3

Please sign in to comment.