diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-19 23:01:24 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-19 23:01:24 +0200 |
| commit | 7d028420d0cd8592c36f9b50950f4b72fe613aa7 (patch) | |
| tree | aadc90856888c95d54d68b1880ce21eaf0b0a90e /lua/plugins | |
| parent | ace51640ef59bb1a33fa104778349c4a159637b7 (diff) | |
| download | dotfiles-7d028420d0cd8592c36f9b50950f4b72fe613aa7.tar.gz dotfiles-7d028420d0cd8592c36f9b50950f4b72fe613aa7.zip | |
Add custom devicons
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/web-devicons.lua | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/lua/plugins/web-devicons.lua b/lua/plugins/web-devicons.lua index 2f68275..06f2d1c 100644 --- a/lua/plugins/web-devicons.lua +++ b/lua/plugins/web-devicons.lua @@ -1,17 +1,22 @@ ---local status, icons = pcall(require, "nvim-web-devicons") ---if (not status) then return end ---icons.setup { -require'nvim-web-devicons'.setup { +local devicons = require('nvim-web-devicons') + +-- Set devicons overrides early. +devicons.setup({ override = { + js = { icon = '', color = '#f5c06f', name = 'Js' }, + jsx = { icon = '', color = '#689fb6', name = 'Jsx' }, + ts = { icon = '', color = '#4377c1', name = 'Ts' }, + tsx = { icon = '', color = '#4377c1', name = 'Tsx' }, + png = { icon = '', color = '#d4843e', name = 'Png' }, + webp = { icon = '', color = '#3498db', name = 'Webp' }, + jpg = { icon = '', color = '#16a085', name = 'Jpg' }, + svg = { icon = '', color = '#3affdb', name = 'Svg' }, zsh = { - icon = "", - color = "#428850", - cterm_color = "65", - name = "Zsh" - }; - color_icons = true; + icon = '', + color = '#428850', + cterm_color = '65', + name = 'Zsh', + }, }, - -- globally enable default icons (default to false) - -- will get overriden by `get_icons` option - --default = true -} + color_icons = true, +}) |
