├── .stylua.toml ├── README.md └── lua ├── nvim-nonicons ├── extentions │ ├── lualine.lua │ ├── mason.lua │ ├── nvim-notify.lua │ └── nvim-tree.lua ├── init.lua └── mapping.lua └── nvim-web-devicons └── override.lua /.stylua.toml: -------------------------------------------------------------------------------- 1 | indent_type = "Spaces" 2 | indent_width = 2 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nvim-nonicons 2 | 3 | Icon set for neovim plugins and settings. 4 | Collection of configurations for [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons). 5 | 6 | This repository is experimental and if there is demand, I'm going to create another plugin independent of nvim-web-devicons. 7 | 8 | ## Features 9 | 10 | - A familiar UI with the icons used on github 11 | - Not only file type, but also mode and completion icons are available 12 | - Easy-to-read design even with a small font size (16 x 16) 13 | 14 | ## Requirements 15 | 16 | - [Nonicons](https://github.com/yamatsum/nonicons) >= 0.0.14 17 | 18 | ## Installation 19 | 20 | ```lua 21 | use 'yamatsum/nvim-nonicons' 22 | 23 | -- if use nvim-web-devicons 24 | use { 25 | 'yamatsum/nvim-nonicons', 26 | requires = {'kyazdani42/nvim-web-devicons'} 27 | } 28 | ``` 29 | 30 | ## Usage 31 | 32 | ```lua 33 | require('nvim-nonicons').setup {} 34 | ``` 35 | 36 | ### iTerm 37 | 38 | Set "non-ascii" font to nonicons in your favorite terminal settings. 39 | 40 | e.g.) [iTerm](https://iterm2.com/documentation-fonts.html) 41 | 42 | By using two fonts, you can use your favorite font as the main font. 43 | 44 | If the terminal can only use one font, you need to use the nonicons patched font. 45 | 46 | ### Kitty 47 | 48 | After installing the font, add the following line to your `kitty.conf` file: 49 | 50 | `symbol_map U+f101-U+f25c nonicons` 51 | 52 | ```lua 53 | local icons = require "nvim-nonicons" 54 | 55 | icons.get("file") 56 | ``` 57 | 58 | ## Gallery 59 | 60 | ### nvim-telescope/telescope.nvim 61 | 62 | ![telescope.nvim](https://user-images.githubusercontent.com/42740055/110775102-dfbd4200-82a1-11eb-9393-64240026c761.png) 63 | 64 | Suggested configuration 65 | 66 | ```lua 67 | local icons = require("nvim-nonicons") 68 | 69 | require("telescope").setup({ 70 | defaults = { 71 | prompt_prefix = " " .. icons.get("telescope") .. " ", 72 | selection_caret = " ❯ ", 73 | entry_prefix = " ", 74 | }, 75 | }) 76 | ``` 77 | 78 | ### kyazdani42/nvim-tree.lua 79 | 80 | Suggested configuration 81 | 82 | ```lua 83 | local nonicons_extention = require("nvim-nonicons.extentions.nvim-tree") 84 | 85 | require("nvim-tree").setup({ 86 | renderer = { 87 | icons = { 88 | glyphs = nonicons_extention.glyphs, 89 | }, 90 | }, 91 | }) 92 | ``` 93 | 94 | ### nvim-lualine/lualine.nvim 95 | 96 | Suggested configuration 97 | 98 | ```lua 99 | local icons = require("nvim-nonicons") 100 | local nonicons_extention = require("nvim-nonicons.extentions.lualine") 101 | 102 | require("lualine").setup({ 103 | sections = { 104 | lualine_a = { nonicons_extention.mode }, 105 | lualine_z = { 106 | { 107 | "branch", 108 | icon = icons.get("git-branch"), 109 | }, 110 | }, 111 | } 112 | }) 113 | ``` 114 | 115 | ### williamboman/nvim-lsp-installer 116 | 117 | Suggested configuration 118 | 119 | ```lua 120 | local nonicons_extention = require("nvim-nonicons.extentions.nvim-lsp-installer") 121 | 122 | require("nvim-lsp-installer").setup({ 123 | ui = { 124 | icons = nonicons_extention.icons, 125 | }, 126 | }) 127 | ``` 128 | 129 | ### rcarriga/nvim-notify 130 | 131 | ```lua 132 | local nonicons_extention = require("nvim-nonicons.extentions.nvim-notify") 133 | 134 | require("notify").setup({ 135 | icons = nonicons_extention.icons, 136 | }) 137 | ``` 138 | 139 | ### glepnir/galaxyline.nvim (deplicated) 140 | 141 | ![galaxyline.nvim1](https://user-images.githubusercontent.com/42740055/110775089-dd5ae800-82a1-11eb-9d95-f9b43a6b616e.png) 142 | ![galaxyline.nvim2](https://user-images.githubusercontent.com/42740055/110775090-ddf37e80-82a1-11eb-9b52-75bcd3f9f568.png) 143 | ![galaxyline.nvim3](https://user-images.githubusercontent.com/42740055/110775093-de8c1500-82a1-11eb-81ad-321c377aab27.png) 144 | 145 | ### nvim-lua/completion-nvim (deplicated) 146 | 147 | ![completion-nvim1](https://user-images.githubusercontent.com/42740055/110829794-dcdf4300-82db-11eb-9650-d905ab468633.png) 148 | ![completion-nvim1](https://user-images.githubusercontent.com/42740055/110829801-dea90680-82db-11eb-890d-6aa6381c53d1.png) 149 | 150 | ## Other 151 | 152 | - [VSCode IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) 153 | - [Atomicons](https://github.com/atom/atom/pull/14657) 154 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/extentions/lualine.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local icons = require("nvim-nonicons.mapping") 4 | 5 | local function get(name) 6 | return vim.fn.nr2char(icons[name]) 7 | end 8 | 9 | local mode = { 10 | NORMAL = { icon = get("vim-normal-mode") }, 11 | INSERT = { icon = get("vim-insert-mode") }, 12 | VISUAL = { icon = get("vim-visual-mode") }, 13 | REPLACE = { icon = get("vim-replace-mode") }, 14 | COMMAND = { icon = get("vim-command-mode") }, 15 | ["V-LINE"] = { icon = get("vim-visual-mode") }, 16 | } 17 | 18 | M.mode = { 19 | "mode", 20 | fmt = function(str) 21 | if mode[str] ~= nil then 22 | return " " .. mode[str].icon 23 | end 24 | 25 | return str:sub(1, 1) 26 | end, 27 | } 28 | 29 | return M 30 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/extentions/mason.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local icons = require("nvim-nonicons.mapping") 4 | 5 | local function get(name) 6 | return vim.fn.nr2char(icons[name]) 7 | end 8 | 9 | M.icons = { 10 | package_installed = get("check") .. " ", 11 | package_pending = get("sync") .. " ", 12 | package_uninstalled = get("x") .. " ", 13 | } 14 | 15 | return M 16 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/extentions/nvim-notify.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local icons = require "nvim-nonicons.mapping" 4 | 5 | local function get(name) 6 | return vim.fn.nr2char(icons[name]) 7 | end 8 | 9 | M.icons = { 10 | ERROR = get "x-circle" .. " ", 11 | WARN = get "alert" .. " ", 12 | INFO = get "info" .. " ", 13 | DEBUG = get "bug" .. " ", 14 | TRACE = get "play" .. " ", 15 | } 16 | 17 | return M 18 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/extentions/nvim-tree.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local icons = require("nvim-nonicons.mapping") 4 | 5 | local function get(name) 6 | return vim.fn.nr2char(icons[name]) 7 | end 8 | 9 | M.glyphs = { 10 | default = get("file"), 11 | symlink = get("file-symlink-file"), 12 | folder = { 13 | default = get("file-directory-fill"), 14 | open = get("file-directory-open-fill"), 15 | symlink = get("file-directory-fill"), 16 | symlink_open = get("file-directory-open-fill"), 17 | empty = get("file-directory-open-fill"), 18 | empty_open = get("file-directory-open-fill"), 19 | arrow_open = get("chevron-down"), 20 | arrow_closed = get("chevron-right"), 21 | }, 22 | } 23 | 24 | return M 25 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/init.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local icons = require("nvim-nonicons.mapping") 4 | 5 | local DEFAULT_OPTIONS = { 6 | devicons = { override = true }, 7 | extentions = { 8 | nvim_tree = { enable = false }, 9 | }, 10 | } 11 | 12 | function M.setup(options) 13 | M.options = vim.tbl_deep_extend("force", DEFAULT_OPTIONS, options or {}) 14 | 15 | if M.options.devicons.override ~= false then 16 | require("nvim-web-devicons.override") 17 | end 18 | 19 | if M.options.extentions.nvim_tree.enable == true then 20 | require("nvim-nonicons.extentions.nvim-tree.setup") 21 | end 22 | end 23 | 24 | function M.get(name) 25 | return vim.fn.nr2char(icons[name]) 26 | end 27 | 28 | M.options = nil 29 | 30 | return M 31 | -------------------------------------------------------------------------------- /lua/nvim-nonicons/mapping.lua: -------------------------------------------------------------------------------- 1 | local M = { 2 | ["alert"] = "61697", 3 | ["angular"] = "61698", 4 | ["archive"] = "61699", 5 | ["arrow-both"] = "61700", 6 | ["arrow-down"] = "61701", 7 | ["arrow-left"] = "61702", 8 | ["arrow-right"] = "61703", 9 | ["arrow-switch"] = "61704", 10 | ["arrow-up"] = "61705", 11 | ["backbone"] = "61706", 12 | ["beaker"] = "61707", 13 | ["bell"] = "61708", 14 | ["bell-slash"] = "61709", 15 | ["bold"] = "61710", 16 | ["book"] = "61711", 17 | ["bookmark"] = "61712", 18 | ["bookmark-slash"] = "61713", 19 | ["briefcase"] = "61714", 20 | ["broadcast"] = "61715", 21 | ["browser"] = "61716", 22 | ["bug"] = "61717", 23 | ["c"] = "61718", 24 | ["c-plusplus"] = "61719", 25 | ["c-sharp"] = "61720", 26 | ["calendar"] = "61721", 27 | ["check"] = "61722", 28 | ["check-circle"] = "61723", 29 | ["check-circle-fill"] = "61724", 30 | ["checklist"] = "61725", 31 | ["chevron-down"] = "61726", 32 | ["chevron-left"] = "61727", 33 | ["chevron-right"] = "61728", 34 | ["chevron-up"] = "61729", 35 | ["circle"] = "61730", 36 | ["circle-slash"] = "61731", 37 | ["clippy"] = "61732", 38 | ["clock"] = "61733", 39 | ["code"] = "61734", 40 | ["code-review"] = "61735", 41 | ["code-square"] = "61736", 42 | ["comment"] = "61737", 43 | ["comment-discussion"] = "61738", 44 | ["container"] = "61739", 45 | ["cpu"] = "61740", 46 | ["credit-card"] = "61741", 47 | ["cross-reference"] = "61742", 48 | ["css"] = "61743", 49 | ["dart"] = "61744", 50 | ["dash"] = "61745", 51 | ["database"] = "61746", 52 | ["desktop-download"] = "61747", 53 | ["device-camera"] = "61748", 54 | ["device-camera-video"] = "61749", 55 | ["device-desktop"] = "61750", 56 | ["device-mobile"] = "61751", 57 | ["diff"] = "61752", 58 | ["diff-added"] = "61753", 59 | ["diff-ignored"] = "61754", 60 | ["diff-modified"] = "61755", 61 | ["diff-removed"] = "61756", 62 | ["diff-renamed"] = "61757", 63 | ["docker"] = "61758", 64 | ["dot"] = "61759", 65 | ["dot-fill"] = "61760", 66 | ["download"] = "61761", 67 | ["ellipsis"] = "61762", 68 | ["elm"] = "61763", 69 | ["eye"] = "61764", 70 | ["eye-closed"] = "61765", 71 | ["file"] = "61766", 72 | ["file-badge"] = "61767", 73 | ["file-binary"] = "61768", 74 | ["file-code"] = "61769", 75 | ["file-diff"] = "61770", 76 | ["file-directory"] = "61771", 77 | ["file-directory-outline"] = "61772", 78 | ["file-submodule"] = "61773", 79 | ["file-symlink-file"] = "61774", 80 | ["file-zip"] = "61775", 81 | ["filter"] = "61776", 82 | ["flame"] = "61777", 83 | ["fold"] = "61778", 84 | ["fold-down"] = "61779", 85 | ["fold-up"] = "61780", 86 | ["gear"] = "61781", 87 | ["gift"] = "61782", 88 | ["git-branch"] = "61783", 89 | ["git-commit"] = "61784", 90 | ["git-compare"] = "61785", 91 | ["git-merge"] = "61786", 92 | ["git-pull-request"] = "61787", 93 | ["globe"] = "61788", 94 | ["go"] = "61789", 95 | ["grabber"] = "61790", 96 | ["graph"] = "61791", 97 | ["heading"] = "61792", 98 | ["heart"] = "61793", 99 | ["heart-fill"] = "61794", 100 | ["history"] = "61795", 101 | ["home"] = "61796", 102 | ["horizontal-rule"] = "61797", 103 | ["hourglass"] = "61798", 104 | ["html"] = "61799", 105 | ["hubot"] = "61800", 106 | ["image"] = "61801", 107 | ["inbox"] = "61802", 108 | ["infinity"] = "61803", 109 | ["info"] = "61804", 110 | ["issue-closed"] = "61805", 111 | ["issue-opened"] = "61806", 112 | ["issue-reopened"] = "61807", 113 | ["italic"] = "61808", 114 | ["java"] = "61809", 115 | ["javascript"] = "61810", 116 | ["json"] = "61811", 117 | ["kebab-horizontal"] = "61812", 118 | ["key"] = "61813", 119 | ["kotlin"] = "61814", 120 | ["kubernetes"] = "61815", 121 | ["law"] = "61816", 122 | ["light-bulb"] = "61817", 123 | ["link"] = "61818", 124 | ["link-external"] = "61819", 125 | ["list-ordered"] = "61820", 126 | ["list-unordered"] = "61821", 127 | ["location"] = "61822", 128 | ["lock"] = "61823", 129 | ["logo-gist"] = "61824", 130 | ["logo-github"] = "61825", 131 | ["lua"] = "61826", 132 | ["mail"] = "61827", 133 | ["mark-github"] = "61828", 134 | ["markdown"] = "61829", 135 | ["megaphone"] = "61830", 136 | ["mention"] = "61831", 137 | ["meter"] = "61832", 138 | ["milestone"] = "61833", 139 | ["mirror"] = "61834", 140 | ["moon"] = "61835", 141 | ["mortar-board"] = "61836", 142 | ["mute"] = "61837", 143 | ["nginx"] = "61838", 144 | ["no-entry"] = "61839", 145 | ["node"] = "61840", 146 | ["north-star"] = "61841", 147 | ["note"] = "61842", 148 | ["npm"] = "61843", 149 | ["octoface"] = "61844", 150 | ["organization"] = "61845", 151 | ["package"] = "61846", 152 | ["package-dependencies"] = "61847", 153 | ["package-dependents"] = "61848", 154 | ["paintbrush"] = "61849", 155 | ["paper-airplane"] = "61850", 156 | ["pencil"] = "61851", 157 | ["people"] = "61852", 158 | ["perl"] = "61853", 159 | ["person"] = "61854", 160 | ["php"] = "61855", 161 | ["pin"] = "61856", 162 | ["play"] = "61857", 163 | ["plug"] = "61858", 164 | ["plus"] = "61859", 165 | ["plus-circle"] = "61860", 166 | ["project"] = "61861", 167 | ["pulse"] = "61862", 168 | ["python"] = "61863", 169 | ["question"] = "61864", 170 | ["quote"] = "61865", 171 | ["r"] = "61866", 172 | ["react"] = "61867", 173 | ["rectangle"] = "61868", 174 | ["reply"] = "61869", 175 | ["repo"] = "61870", 176 | ["repo-clone"] = "61871", 177 | ["repo-forked"] = "61872", 178 | ["repo-pull"] = "61873", 179 | ["repo-push"] = "61874", 180 | ["repo-template"] = "61875", 181 | ["report"] = "61876", 182 | ["require"] = "61877", 183 | ["rocket"] = "61878", 184 | ["rss"] = "61879", 185 | ["ruby"] = "61880", 186 | ["rust"] = "61881", 187 | ["scala"] = "61882", 188 | ["screen-full"] = "61883", 189 | ["screen-normal"] = "61884", 190 | ["search"] = "61885", 191 | ["server"] = "61886", 192 | ["share"] = "61887", 193 | ["share-android"] = "61888", 194 | ["shield"] = "61889", 195 | ["shield-check"] = "61890", 196 | ["shield-lock"] = "61891", 197 | ["shield-x"] = "61892", 198 | ["sign-in"] = "61893", 199 | ["sign-out"] = "61894", 200 | ["skip"] = "61895", 201 | ["smiley"] = "61896", 202 | ["square"] = "61897", 203 | ["square-fill"] = "61898", 204 | ["squirrel"] = "61899", 205 | ["star"] = "61900", 206 | ["star-fill"] = "61901", 207 | ["stop"] = "61902", 208 | ["stopwatch"] = "61903", 209 | ["strikethrough"] = "61904", 210 | ["sun"] = "61905", 211 | ["swift"] = "61906", 212 | ["sync"] = "61907", 213 | ["tag"] = "61908", 214 | ["tasklist"] = "61909", 215 | ["telescope"] = "61910", 216 | ["terminal"] = "61911", 217 | ["three-bars"] = "61912", 218 | ["thumbsdown"] = "61913", 219 | ["thumbsup"] = "61914", 220 | ["tmux"] = "61915", 221 | ["toml"] = "61916", 222 | ["tools"] = "61917", 223 | ["trashcan"] = "61918", 224 | ["triangle-down"] = "61919", 225 | ["triangle-left"] = "61920", 226 | ["triangle-right"] = "61921", 227 | ["triangle-up"] = "61922", 228 | ["typescript"] = "61923", 229 | ["typography"] = "61924", 230 | ["unfold"] = "61925", 231 | ["unlock"] = "61926", 232 | ["unmute"] = "61927", 233 | ["unverified"] = "61928", 234 | ["upload"] = "61929", 235 | ["verified"] = "61930", 236 | ["versions"] = "61931", 237 | ["vim"] = "61932", 238 | ["vim-command-mode"] = "61933", 239 | ["vim-insert-mode"] = "61934", 240 | ["vim-normal-mode"] = "61935", 241 | ["vim-replace-mode"] = "61936", 242 | ["vim-select-mode"] = "61937", 243 | ["vim-terminal-mode"] = "61938", 244 | ["vim-visual-mode"] = "61939", 245 | ["vue"] = "61940", 246 | ["workflow"] = "61941", 247 | ["x"] = "61942", 248 | ["x-circle"] = "61943", 249 | ["x-circle-fill"] = "61944", 250 | ["yaml"] = "61945", 251 | ["yarn"] = "61946", 252 | ["zap"] = "61947", 253 | ["multi-select"] = "61948", 254 | ["number"] = "61949", 255 | ["trash"] = "61950", 256 | ["video"] = "61951", 257 | ["class"] = "61952", 258 | ["constant"] = "61953", 259 | ["field"] = "61954", 260 | ["interface"] = "61955", 261 | ["keyword"] = "61956", 262 | ["snippet"] = "61957", 263 | ["struct"] = "61958", 264 | ["type"] = "61959", 265 | ["variable"] = "61960", 266 | ["blocked"] = "61961", 267 | ["codescan"] = "61962", 268 | ["codescan-checkmark"] = "61963", 269 | ["codespaces"] = "61964", 270 | ["dependabot"] = "61965", 271 | ["duplicate"] = "61966", 272 | ["person-add"] = "61967", 273 | ["sidebar-collapse"] = "61968", 274 | ["sidebar-expand"] = "61969", 275 | ["table"] = "61970", 276 | ["elixir"] = "61971", 277 | ["terraform"] = "61972", 278 | ["columns"] = "61973", 279 | ["diamond"] = "61974", 280 | ["git-pull-request-closed"] = "61975", 281 | ["git-pull-request-draft"] = "61976", 282 | ["hash"] = "61977", 283 | ["issue-draft"] = "61978", 284 | ["rows"] = "61979", 285 | ["select-single"] = "61980", 286 | ["eslint"] = "61981", 287 | ["prettier"] = "61982", 288 | ["vscode"] = "61983", 289 | ["copy"] = "61984", 290 | ["key-asterisk"] = "61985", 291 | ["paste"] = "61986", 292 | ["sort-asc"] = "61987", 293 | ["sort-desc"] = "61988", 294 | ["babel"] = "61989", 295 | ["ionic"] = "61990", 296 | ["next"] = "61991", 297 | ["svelte"] = "61992", 298 | ["capacitor"] = "61993", 299 | ["graphql"] = "61994", 300 | ["accessibility"] = "61995", 301 | ["apps"] = "61996", 302 | ["bell-fill"] = "61997", 303 | ["cloud"] = "61998", 304 | ["cloud-offline"] = "61999", 305 | ["code-of-conduct"] = "62000", 306 | ["feed-discussion"] = "62001", 307 | ["feed-forked"] = "62002", 308 | ["feed-heart"] = "62003", 309 | ["feed-merged"] = "62004", 310 | ["feed-person"] = "62005", 311 | ["feed-repo"] = "62006", 312 | ["feed-rocket"] = "62007", 313 | ["feed-star"] = "62008", 314 | ["feed-tag"] = "62009", 315 | ["feed-trophy"] = "62010", 316 | ["file-directory-fill"] = "62011", 317 | ["file-directory-open-fill"] = "62012", 318 | ["id-badge"] = "62013", 319 | ["iterations"] = "62014", 320 | ["log"] = "62015", 321 | ["person-fill"] = "62016", 322 | ["repo-deleted"] = "62017", 323 | ["repo-locked"] = "62018", 324 | ["single-select"] = "62019", 325 | ["sliders"] = "62020", 326 | ["stack"] = "62021", 327 | ["tab-external"] = "62022", 328 | ["telescope-fill"] = "62023", 329 | ["trophy"] = "62024", 330 | ["webhook"] = "62025", 331 | } 332 | return M 333 | -------------------------------------------------------------------------------- /lua/nvim-web-devicons/override.lua: -------------------------------------------------------------------------------- 1 | local icons = require("nvim-nonicons.mapping") 2 | local devicons = require("nvim-web-devicons") 3 | 4 | local function get(name) 5 | return vim.fn.nr2char(icons[name]) 6 | end 7 | 8 | local palette = { 9 | orange = "#d18616", 10 | black = "#586069", 11 | bright_black = "#959da5", 12 | white = "#d1d5da", 13 | bright_white = "#fafbfc", 14 | red = "#ea4a5a", 15 | bright_red = "#f97583", 16 | green = "#34d058", 17 | bright_green = "#85e89d", 18 | yellow = "#ffea7f", 19 | bright_yellow = "#ffea7f", 20 | blue = "#2188ff", 21 | bright_blue = "#79b8ff", 22 | magenta = "#b392f0", 23 | bright_magenta = "#b392f0", 24 | cyan = "#39c5cf", 25 | bright_cyan = "#56d4dd", 26 | } 27 | 28 | devicons.set_icon({ 29 | -- ["gruntfile"] = { 30 | -- icon = "", 31 | -- color = "#e37933", 32 | -- name = "Gruntfile" 33 | -- }, 34 | -- ["gulpfile"] = { 35 | -- icon = "", 36 | -- color = palette.bright_red, 37 | -- name = "Gulpfile" 38 | -- }, 39 | -- ["dropbox"] = { 40 | -- icon = "", 41 | -- color = "#0061FE", 42 | -- name = "Dropbox" 43 | -- }, 44 | -- ["xls"] = { 45 | -- icon = "", 46 | -- color = "#207245", 47 | -- name = "Xls" 48 | -- }, 49 | -- ["doc"] = { 50 | -- icon = "", 51 | -- color = "#185abd", 52 | -- name = "Doc" 53 | -- }, 54 | -- ["ppt"] = { 55 | -- icon = "", 56 | -- color = "#cb4a32", 57 | -- name = "Ppt" 58 | -- }, 59 | -- ["xml"] = { 60 | -- icon = "謹", 61 | -- color = "#e37933", 62 | -- name = "Xml" 63 | -- }, 64 | -- ["webpack"] = { 65 | -- icon = "ﰩ", 66 | -- color = palette.bright_blue, 67 | -- name = "Webpack" 68 | -- }, 69 | -- [".settings.json"] = { 70 | -- icon = "", 71 | -- color = "#854CC7", 72 | -- name = "SettingsJson" 73 | -- }, 74 | -- ["cs"] = { 75 | -- icon = "", 76 | -- color = "#596706", 77 | -- name = "Cs" 78 | -- }, 79 | -- ["procfile"] = { 80 | -- icon = "", 81 | -- color = palette.magenta, 82 | -- name = "Procfile" 83 | -- }, 84 | ["svg"] = { 85 | icon = get("image"), 86 | color = "#FFB13B", 87 | name = "Svg" 88 | }, 89 | -- [".bashprofile"] = { 90 | -- icon = "", 91 | -- color = "#89e051", 92 | -- name = "BashProfile" 93 | -- }, 94 | -- [".bashrc"] = { 95 | -- icon = "", 96 | -- color = "#89e051", 97 | -- name = "Bashrc" 98 | -- }, 99 | -- [".babelrc"] = { 100 | -- icon = "ﬥ", 101 | -- color = palette.yellow, 102 | -- name = "Babelrc" 103 | -- }, 104 | -- [".ds_store"] = { 105 | -- icon = "", 106 | -- color = palette.bright_black, 107 | -- name = "DsStore" 108 | -- }, 109 | ["git"] = { 110 | icon = get("git-commit"), 111 | color = palette.bright_black, 112 | name = "GitLogo", 113 | }, 114 | [".gitattributes"] = { 115 | icon = get("git-commit"), 116 | color = palette.bright_black, 117 | name = "GitAttributes", 118 | }, 119 | [".gitconfig"] = { 120 | icon = get("git-commit"), 121 | color = palette.bright_black, 122 | name = "GitConfig", 123 | }, 124 | [".gitignore"] = { 125 | icon = get("git-commit"), 126 | color = palette.bright_black, 127 | name = "GitIgnore", 128 | }, 129 | -- ["COMMIT_EDITMSG"] = { 130 | -- icon = "", 131 | -- color = palette.bright_black, 132 | -- name = "GitCommit" 133 | -- }, 134 | -- [".gitlab-ci.yml"] = { 135 | -- icon = "", 136 | -- color = "#e24329", 137 | -- name = "GitlabCI" 138 | -- }, 139 | [".gvimrc"] = { 140 | icon = get("vim"), 141 | color = palette.bright_green, 142 | name = "Gvimrc", 143 | }, 144 | [".npmignore"] = { 145 | icon = get("npm"), 146 | color = palette.bright_red, 147 | name = "NPMIgnore", 148 | }, 149 | [".vimrc"] = { 150 | icon = get("vim"), 151 | color = palette.bright_green, 152 | name = "Vimrc", 153 | }, 154 | [".zshrc"] = { 155 | icon = get("terminal"), 156 | color = palette.bright_black, 157 | name = "Zshrc", 158 | }, 159 | ["Dockerfile"] = { 160 | icon = get("docker"), 161 | color = palette.bright_blue, 162 | name = "Dockerfile", 163 | }, 164 | ["Gemfile$"] = { 165 | icon = get("ruby"), 166 | color = palette.bright_red, 167 | name = "Gemfile", 168 | }, 169 | ["LICENSE"] = { 170 | icon = get("file-badge"), 171 | color = palette.yellow, 172 | name = "License", 173 | }, 174 | -- ["Vagrantfile$"] = { 175 | -- icon = "", 176 | -- color = "#1563FF", 177 | -- name = "Vagrantfile" 178 | -- }, 179 | -- ["_gvimrc"] = { 180 | -- icon = "", 181 | -- color = palette.bright_green, 182 | -- name = "Gvimrc" 183 | -- }, 184 | -- ["_vimrc"] = { 185 | -- icon = "", 186 | -- color = palette.bright_green, 187 | -- name = "Vimrc" 188 | -- }, 189 | -- ["ai"] = { 190 | -- icon = "", 191 | -- color = palette.yellow, 192 | -- name = "Ai" 193 | -- }, 194 | -- ["awk"] = { 195 | -- icon = "", 196 | -- color = "#4d5a5e", 197 | -- name = "Awk" 198 | -- }, 199 | ["bash"] = { 200 | icon = get("terminal"), 201 | color = palette.bright_black, 202 | name = "Bash", 203 | }, 204 | -- ["bat"] = { 205 | -- icon = "", 206 | -- color = "#C1F12E", 207 | -- name = "Bat" 208 | -- }, 209 | -- ["bmp"] = { 210 | -- icon = "", 211 | -- color = palette.magenta, 212 | -- name = "Bmp" 213 | -- }, 214 | ["c"] = { 215 | icon = get("c"), 216 | color = palette.bright_blue, 217 | name = "C", 218 | }, 219 | ["c++"] = { 220 | icon = get("c-plusplus"), 221 | color = palette.bright_red, 222 | name = "CPlusPlus", 223 | }, 224 | ["cc"] = { 225 | icon = get("c-plusplus"), 226 | color = palette.bright_red, 227 | name = "CPlusPlus", 228 | }, 229 | -- ["clj"] = { 230 | -- icon = "", 231 | -- color = palette.bright_green, 232 | -- name = "Clojure" 233 | -- }, 234 | -- ["cljc"] = { 235 | -- icon = "", 236 | -- color = palette.bright_green, 237 | -- name = "ClojureC" 238 | -- }, 239 | -- ["cljs"] = { 240 | -- icon = "", 241 | -- color = palette.bright_blue, 242 | -- name = "ClojureJS" 243 | -- }, 244 | -- ["cmakelists.txt"] = { 245 | -- icon = "", 246 | -- color = palette.bright_black, 247 | -- name = "CmakeLists" 248 | -- }, 249 | -- ["coffee"] = { 250 | -- icon = "", 251 | -- color = palette.yellow, 252 | -- name = "Coffee" 253 | -- }, 254 | ["conf"] = { 255 | icon = get("gear"), 256 | color = palette.bright_black, 257 | name = "Conf", 258 | }, 259 | -- ["config.ru"] = { 260 | -- icon = "", 261 | -- color = palette.bright_red, 262 | -- name = "ConfigRu" 263 | -- }, 264 | ["cp"] = { 265 | icon = get("c-plusplus"), 266 | color = palette.bright_blue, 267 | name = "Cp", 268 | }, 269 | ["cpp"] = { 270 | icon = get("c-plusplus"), 271 | color = palette.bright_blue, 272 | name = "Cpp", 273 | }, 274 | -- ["csh"] = { 275 | -- icon = "", 276 | -- color = "#4d5a5e", 277 | -- name = "Csh" 278 | -- }, 279 | ["css"] = { 280 | icon = get("css"), 281 | color = palette.bright_blue, 282 | name = "Css", 283 | }, 284 | -- ["cxx"] = { 285 | -- icon = "", 286 | -- color = palette.bright_blue, 287 | -- name = "Cxx" 288 | -- }, 289 | -- ["d"] = { 290 | -- icon = "", 291 | -- color = "#427819", 292 | -- name = "D" 293 | -- }, 294 | ["dart"] = { 295 | icon = get("dart"), 296 | color = palette.bright_blue, 297 | name = "Dart", 298 | }, 299 | ["db"] = { 300 | icon = get("database"), 301 | color = palette.bright_black, 302 | name = "Db", 303 | }, 304 | -- ["diff"] = { 305 | -- icon = "", 306 | -- color = palette.bright_black, 307 | -- name = "Diff" 308 | -- }, 309 | ["dockerfile"] = { 310 | icon = get("docker"), 311 | color = palette.bright_blue, 312 | name = "Dockerfile", 313 | }, 314 | -- ["dump"] = { 315 | -- icon = "", 316 | -- color = "#dad8d8", 317 | -- name = "Dump" 318 | -- }, 319 | -- ["edn"] = { 320 | -- icon = "", 321 | -- color = palette.bright_blue, 322 | -- name = "Edn" 323 | -- }, 324 | -- ["eex"] = { 325 | -- icon = "", 326 | -- color = palette.magenta, 327 | -- name = "Eex" 328 | -- }, 329 | -- ["ejs"] = { 330 | -- icon = "", 331 | -- color = palette.yellow, 332 | -- name = "Ejs" 333 | -- }, 334 | -- ["elm"] = { 335 | -- icon = "", 336 | -- color = palette.bright_blue, 337 | -- name = "Elm" 338 | -- }, 339 | -- ["erl"] = { 340 | -- icon = "", 341 | -- color = "#B83998", 342 | -- name = "Erl" 343 | -- }, 344 | -- ["ex"] = { 345 | -- icon = "", 346 | -- color = palette.magenta, 347 | -- name = "Ex" 348 | -- }, 349 | -- ["exs"] = { 350 | -- icon = "", 351 | -- color = palette.magenta, 352 | -- name = "Exs" 353 | -- }, 354 | -- ["f#"] = { 355 | -- icon = "", 356 | -- color = palette.bright_blue, 357 | -- name = "Fsharp" 358 | -- }, 359 | -- ["favicon.ico"] = { 360 | -- icon = "", 361 | -- color = palette.yellow, 362 | -- name = "Favicon" 363 | -- }, 364 | ["fish"] = { 365 | icon = get("terminal"), 366 | color = "#4d5a5e", 367 | name = "Fish" 368 | }, 369 | -- ["fs"] = { 370 | -- icon = "", 371 | -- color = palette.bright_blue, 372 | -- name = "Fs" 373 | -- }, 374 | -- ["fsi"] = { 375 | -- icon = "", 376 | -- color = palette.bright_blue, 377 | -- name = "Fsi" 378 | -- }, 379 | -- ["fsscript"] = { 380 | -- icon = "", 381 | -- color = palette.bright_blue, 382 | -- name = "Fsscript" 383 | -- }, 384 | -- ["fsx"] = { 385 | -- icon = "", 386 | -- color = palette.bright_blue, 387 | -- name = "Fsx" 388 | -- }, 389 | -- ["gemspec"] = { 390 | -- icon = "", 391 | -- color = palette.bright_red, 392 | -- name = "Gemspec" 393 | -- }, 394 | -- ["gif"] = { 395 | -- icon = "", 396 | -- color = palette.magenta, 397 | -- name = "Gif" 398 | -- }, 399 | ["go"] = { 400 | icon = get("go"), 401 | color = palette.bright_blue, 402 | name = "Go", 403 | }, 404 | -- ["h"] = { 405 | -- icon = "", 406 | -- color = palette.magenta, 407 | -- name = "H" 408 | -- }, 409 | -- ["haml"] = { 410 | -- icon = "", 411 | -- color = "#eaeae1", 412 | -- name = "Haml" 413 | -- }, 414 | -- ["hbs"] = { 415 | -- icon = "", 416 | -- color = "#f0772b", 417 | -- name = "Hbs" 418 | -- }, 419 | -- ["hh"] = { 420 | -- icon = "", 421 | -- color = palette.magenta, 422 | -- name = "Hh" 423 | -- }, 424 | -- ["hpp"] = { 425 | -- icon = "", 426 | -- color = palette.magenta, 427 | -- name = "Hpp" 428 | -- }, 429 | -- ["hrl"] = { 430 | -- icon = "", 431 | -- color = "#B83998", 432 | -- name = "Hrl" 433 | -- }, 434 | -- ["hs"] = { 435 | -- icon = "", 436 | -- color = palette.magenta, 437 | -- name = "Hs" 438 | -- }, 439 | ["htm"] = { 440 | icon = get("html"), 441 | color = palette.bright_red, 442 | name = "Htm", 443 | }, 444 | ["html"] = { 445 | icon = get("html"), 446 | color = palette.bright_red, 447 | name = "Html", 448 | }, 449 | -- ["hxx"] = { 450 | -- icon = "", 451 | -- color = palette.magenta, 452 | -- name = "Hxx" 453 | -- }, 454 | ["ico"] = { 455 | icon = get("image"), 456 | color = palette.yellow, 457 | name = "Ico", 458 | }, 459 | -- ["ini"] = { 460 | -- icon = "", 461 | -- color = palette.bright_black, 462 | -- name = "Ini" 463 | -- }, 464 | ["java"] = { 465 | icon = get("java"), 466 | color = palette.bright_red, 467 | name = "Java", 468 | }, 469 | -- ["jl"] = { 470 | -- icon = "", 471 | -- color = "#a270ba", 472 | -- name = "Jl" 473 | -- }, 474 | ["jpeg"] = { 475 | icon = get("image"), 476 | color = palette.magenta, 477 | name = "Jpeg", 478 | }, 479 | ["jpg"] = { 480 | icon = get("image"), 481 | color = palette.magenta, 482 | name = "Jpg", 483 | }, 484 | ["js"] = { 485 | icon = get("javascript"), 486 | color = palette.yellow, 487 | name = "Js", 488 | }, 489 | ["json"] = { 490 | icon = get("json"), 491 | color = palette.bright_black, 492 | name = "Json", 493 | }, 494 | ["jsx"] = { 495 | icon = get("react"), 496 | color = palette.bright_blue, 497 | name = "Jsx", 498 | }, 499 | -- ["ksh"] = { 500 | -- icon = "", 501 | -- color = "#4d5a5e", 502 | -- name = "Ksh" 503 | -- }, 504 | -- ["leex"] = { 505 | -- icon = "", 506 | -- color = palette.magenta, 507 | -- name = "Leex" 508 | -- }, 509 | -- ["less"] = { 510 | -- icon = "", 511 | -- color = "#563d7c", 512 | -- name = "Less" 513 | -- }, 514 | -- ["lhs"] = { 515 | -- icon = "", 516 | -- color = palette.magenta, 517 | -- name = "Lhs" 518 | -- }, 519 | ["license"] = { 520 | icon = get("file-badge"), 521 | color = palette.yellow, 522 | name = "License", 523 | }, 524 | ["lua"] = { 525 | icon = get("lua"), 526 | color = palette.bright_blue, 527 | name = "Lua", 528 | }, 529 | ["makefile"] = { 530 | icon = get("terminal"), 531 | color = palette.bright_black, 532 | name = "Makefile", 533 | }, 534 | ["markdown"] = { 535 | icon = get("markdown"), 536 | color = palette.bright_blue, 537 | name = "Markdown", 538 | }, 539 | ["md"] = { 540 | icon = get("markdown"), 541 | color = palette.bright_blue, 542 | name = "Md", 543 | }, 544 | ["mdx"] = { 545 | icon = get("markdown"), 546 | color = palette.bright_blue, 547 | name = "Mdx", 548 | }, 549 | -- ["mix.lock"] = { 550 | -- icon = "", 551 | -- color = palette.magenta, 552 | -- name = "MixLock" 553 | -- }, 554 | -- ["mjs"] = { 555 | -- icon = "", 556 | -- color = "#f1e05a", 557 | -- name = "Mjs" 558 | -- }, 559 | -- ["ml"] = { 560 | -- icon = "λ", 561 | -- color = "#e37933", 562 | -- name = "Ml" 563 | -- }, 564 | -- ["mli"] = { 565 | -- icon = "λ", 566 | -- color = "#e37933", 567 | -- name = "Mli" 568 | -- }, 569 | -- ["mustache"] = { 570 | -- icon = "", 571 | -- color = "#e37933", 572 | -- name = "Mustache" 573 | -- }, 574 | -- ["nix"] = { 575 | -- icon = "", 576 | -- color = "#7ebae4", 577 | -- name = "Nix" 578 | -- }, 579 | ["node_modules"] = { 580 | icon = get("npm"), 581 | color = palette.bright_red, 582 | name = "NodeModules", 583 | }, 584 | ["package.json"] = { 585 | icon = get("npm"), 586 | color = palette.bright_red, 587 | name = "PackageJson", 588 | }, 589 | ["package-lock.json"] = { 590 | icon = get("npm"), 591 | color = palette.bright_red, 592 | name = "PackageLockJson", 593 | }, 594 | ["php"] = { 595 | icon = get("php"), 596 | color = palette.magenta, 597 | name = "Php", 598 | }, 599 | ["pl"] = { 600 | icon = get("perl"), 601 | color = palette.bright_blue, 602 | name = "Pl", 603 | }, 604 | -- ["pm"] = { 605 | -- icon = "", 606 | -- color = palette.bright_blue, 607 | -- name = "Pm" 608 | -- }, 609 | ["png"] = { 610 | icon = get("image"), 611 | color = palette.magenta, 612 | name = "Png", 613 | }, 614 | -- ["pp"] = { 615 | -- icon = "", 616 | -- color = "#302B6D", 617 | -- name = "Pp" 618 | -- }, 619 | -- ["ps1"] = { 620 | -- icon = "", 621 | -- color = "#4d5a5e", 622 | -- name = "PromptPs1" 623 | -- }, 624 | -- ["psb"] = { 625 | -- icon = "", 626 | -- color = palette.bright_blue, 627 | -- name = "Psb" 628 | -- }, 629 | -- ["psd"] = { 630 | -- icon = "", 631 | -- color = palette.bright_blue, 632 | -- name = "Psd" 633 | -- }, 634 | ["py"] = { 635 | icon = get("python"), 636 | color = palette.bright_blue, 637 | name = "Py", 638 | }, 639 | ["pyc"] = { 640 | icon = get("python"), 641 | color = palette.bright_blue, 642 | name = "Pyc", 643 | }, 644 | ["pyd"] = { 645 | icon = get("python"), 646 | color = palette.bright_blue, 647 | name = "Pyd", 648 | }, 649 | ["pyo"] = { 650 | icon = get("python"), 651 | color = palette.bright_blue, 652 | name = "Pyo", 653 | }, 654 | ["r"] = { 655 | icon = get("r"), 656 | color = palette.bright_green, 657 | name = "R", 658 | }, 659 | ["rake"] = { 660 | icon = get("ruby"), 661 | color = palette.bright_red, 662 | name = "Rake", 663 | }, 664 | ["rakefile"] = { 665 | icon = get("ruby"), 666 | color = palette.bright_red, 667 | name = "Rakefile", 668 | }, 669 | ["rb"] = { 670 | icon = get("ruby"), 671 | color = palette.bright_red, 672 | name = "Rb", 673 | }, 674 | -- ["rlib"] = { 675 | -- icon = "", 676 | -- color = "#dea584", 677 | -- name = "Rlib" 678 | -- }, 679 | -- ["rmd"] = { 680 | -- icon = "", 681 | -- color = palette.bright_blue, 682 | -- name = "Rmd" 683 | -- }, 684 | -- ["rproj"] = { 685 | -- icon = "鉶", 686 | -- color = palette.bright_green, 687 | -- name = "Rproj" 688 | -- }, 689 | ["rs"] = { 690 | icon = get("rust"), 691 | color = palette.bright_black, 692 | name = "Rs", 693 | }, 694 | ["rss"] = { 695 | icon = get("rss"), 696 | color = palette.orange, 697 | name = "Rss", 698 | }, 699 | -- ["sass"] = { 700 | -- icon = "", 701 | -- color = "#f55385", 702 | -- name = "Sass" 703 | -- }, 704 | ["scala"] = { 705 | icon = get("scala"), 706 | color = palette.bright_red, 707 | name = "Scala", 708 | }, 709 | -- ["scss"] = { 710 | -- icon = "", 711 | -- color = "#f55385", 712 | -- name = "Scss" 713 | -- }, 714 | ["sh"] = { 715 | icon = get("terminal"), 716 | color = palette.bright_black, 717 | name = "Sh", 718 | }, 719 | -- ["slim"] = { 720 | -- icon = "", 721 | -- color = palette.bright_red, 722 | -- name = "Slim" 723 | -- }, 724 | -- ["sln"] = { 725 | -- icon = "", 726 | -- color = "#854CC7", 727 | -- name = "Sln" 728 | -- }, 729 | ["sql"] = { 730 | icon = get("database"), 731 | color = palette.bright_black, 732 | name = "Sql", 733 | }, 734 | -- ["styl"] = { 735 | -- icon = "", 736 | -- color = palette.bright_green, 737 | -- name = "Styl" 738 | -- }, 739 | -- ["suo"] = { 740 | -- icon = "", 741 | -- color = "#854CC7", 742 | -- name = "Suo" 743 | -- }, 744 | ["svg"] = { 745 | icon = get("key-asterisk"), 746 | color = palette.orange, 747 | name = "Svg", 748 | }, 749 | ["swift"] = { 750 | icon = get("swift"), 751 | color = palette.orange, 752 | name = "Swift", 753 | }, 754 | -- ["t"] = { 755 | -- icon = "", 756 | -- color = palette.bright_blue, 757 | -- name = "Tor" 758 | -- }, 759 | -- ["tex"] = { 760 | -- icon = "ﭨ", 761 | -- color = "#3D6117", 762 | -- name = "Tex" 763 | -- }, 764 | ["toml"] = { 765 | icon = get("toml"), 766 | color = palette.bright_black, 767 | name = "Toml", 768 | }, 769 | ["ts"] = { 770 | icon = get("typescript"), 771 | color = palette.bright_blue, 772 | name = "Ts", 773 | }, 774 | ["tsx"] = { 775 | icon = get("react"), 776 | color = palette.bright_blue, 777 | name = "Tsx", 778 | }, 779 | -- ["twig"] = { 780 | -- icon = "", 781 | -- color = palette.bright_green, 782 | -- name = "Twig" 783 | -- }, 784 | ["vim"] = { 785 | icon = get("vim"), 786 | color = palette.bright_green, 787 | name = "Vim", 788 | }, 789 | ["vue"] = { 790 | icon = get("vue"), 791 | color = palette.bright_green, 792 | name = "Vue", 793 | }, 794 | -- ["webmanifest"] = { 795 | -- icon = "", 796 | -- color = "#f1e05a", 797 | -- name = "Webmanifest" 798 | -- }, 799 | ["webp"] = { 800 | icon = get("image"), 801 | color = palette.magenta, 802 | name = "Webp", 803 | }, 804 | -- ["xcplayground"] = { 805 | -- icon = "", 806 | -- color = "#e37933", 807 | -- name = "XcPlayground" 808 | -- }, 809 | -- ["xul"] = { 810 | -- icon = "", 811 | -- color = "#e37933", 812 | -- name = "Xul" 813 | -- }, 814 | ["yaml"] = { 815 | icon = get("yaml"), 816 | color = palette.bright_black, 817 | name = "Yaml", 818 | }, 819 | ["yml"] = { 820 | icon = get("yaml"), 821 | color = palette.bright_black, 822 | name = "Yml", 823 | }, 824 | ["zsh"] = { 825 | icon = get("terminal"), 826 | color = palette.bright_black, 827 | name = "Zsh", 828 | }, 829 | ["terminal"] = { 830 | icon = get("terminal"), 831 | color = palette.bright_black, 832 | name = "Terminal", 833 | }, 834 | -- ["pdf"] = { 835 | -- icon = "", 836 | -- color = "#b30b00", 837 | -- name = "Pdf" 838 | -- }, 839 | -- ["kt"] = { 840 | -- icon = "𝙆", 841 | -- color = "#F88A02", 842 | -- name = "Kotlin" 843 | -- } 844 | }) 845 | 846 | devicons.set_default_icon(get("file"), palette.bright_black) 847 | --------------------------------------------------------------------------------