Comments (6)
If you check the help page for nvim-tree you can find the current list of highlight groups. Currently that would be this list.
from nightfox.nvim.
I meant more of a complete thing like this (https://github.com/kabinspace/AstroVim/blob/main/lua/configs/icons.lua)
from nightfox.nvim.
`-- colours from https://github.com/EdenEast/nightfox.nvim/blob/main/lua/nightfox/colors/nordfox.lua
local M = {}
function M.config()
local status_ok, icons = pcall(require, "nvim-web-devicons")
if not status_ok then
return
end
local colors = {
c = "#81a1c1", -- blue
css = "#bf616a", -- red
deb = "#93ccdc", -- cyan br
docker = "#8aa872", -- green dm
html = "#c9826b", -- orange
js = "#a3be8c", -- green
kt = "#b1d196", -- green br
lock = "#d9b263", -- yellow dm
lua = "#88c0d0", -- cyan
mp3 = "#c895bf", -- magenta br
mp4 = "#c895bf", -- magenta br
out = "#bbc3d4", -- white dm
py = "#ebcb8b", -- yellow
robot = "#e7ecf4", -- white br
toml = "#d092ce", -- pink br
ts = "#668aab", -- blue dm
ttf = "#a54e56", -- red dm
rb = "#d89079", -- orange br
rpm = "#d06f79", -- red br
woff = "#b46950", -- orange dm
woff2 = "#b46950", -- orange dm
zip = "#f0d399", -- yellow br
jsx = "#69a7ba", -- cyan dm
vue = "#8cafd2", -- blue br
rs = "#a96ca5", -- pink dm
png = "#b48ead", -- magenta
jpeg = "#b48ead", -- magenta
jpg = "#b48ead", -- magenta
}
icons.set_icon {
c = {
icon = "",
color = colors.c,
name = "c",
},
css = {
icon = "",
color = colors.css,
name = "css",
},
deb = {
icon = "",
color = colors.deb,
name = "deb",
},
Dockerfile = {
icon = "",
color = colors.docker,
name = "Dockerfile",
},
html = {
icon = "",
color = colors.html,
name = "html",
},
js = {
icon = "",
color = colors.js,
name = "js",
},
kt = {
icon = "",
color = colors.kt,
name = "kt",
},
lock = {
icon = "",
color = colors.lock,
name = "lock",
},
lua = {
icon = "",
color = colors.lua,
name = "lua",
},
mp3 = {
icon = "",
color = colors.mp3,
name = "mp3",
},
mp4 = {
icon = "",
color = colors.mp4,
name = "mp4",
},
out = {
icon = "",
color = colors.out,
name = "out",
},
py = {
icon = "",
color = colors.py,
name = "py",
},
["robots.txt"] = {
icon = "ﮧ",
color = colors.robot,
name = "robots",
},
toml = {
icon = "",
color = colors.toml,
name = "toml",
},
ts = {
icon = "",
color = colors.ts,
name = "ts",
},
ttf = {
icon = "",
color = colors.ttf,
name = "TrueTypeFont",
},
rb = {
icon = "",
color = colors.rb,
name = "rb",
},
rpm = {
icon = "",
color = colors.rpm,
name = "rpm",
},
vue = {
icon = "﵂",
color = colors.vue,
name = "vue",
},
woff = {
icon = "",
color = colors.woff,
name = "WebOpenFontFormat",
},
woff2 = {
icon = "",
color = colors.woff2,
name = "WebOpenFontFormat2",
},
xz = {
icon = "",
color = colors.zip,
name = "xz",
},
zip = {
icon = "",
color = colors.zip,
name = "zip",
},
jsx = {
icon = "ﰆ",
color = colors.jsx,
name = "jsx",
},
rust = {
icon = "",
color = colors.rs,
name = "rs",
},
jpg = {
icon = "",
color = colors.jpg,
name = "jpg",
},
png = {
icon = "",
color = colors.png,
name = "png",
},
jpeg = {
icon = "",
color = colors.jpeg,
name = "jpeg",
},
}
end
return M
`
from nightfox.nvim.
This sort of thing. Put this together on mine and the icons now look much better with the whole theme.
from nightfox.nvim.
I see that devicons defines highlight groups. I would only set some of these highlight groups. I would not want to define the actual icons and names.
from nightfox.nvim.
Of course, it was just an example of what can be done.
from nightfox.nvim.
Related Issues (20)
- bug: Dayfox and Dawnfox colors are nothing like in screenshots HOT 3
- bug: floating window has wrong color HOT 1
- feature: Easily add many more extra configs using themer.dev
- Base16 support has already been developed and you just have to merge it HOT 1
- bug: alacritty config should use TOML for alacritty >=0.13.0
- bug: non-yellow color for carbonfox alacritty configuration file HOT 1
- Help! HOT 2
- bug: `@comment.note` highlight is missing
- bug: Comment highlights do not work with newer versions of nvim-treesitter HOT 2
- bug: some markdown capture groups are missing
- feature: Vis Theme HOT 4
- feature: Foot themes (I have ported to Dawnfox)
- bug: Inconsistent background colors in `lualine` and transparent background
- bug: wezterm has dayfox theme from this repo missing HOT 3
- bug: Cannot define styles on preprocessor macros
- How to set the background of nvimtree as the same as the main area ? HOT 1
- bug: match ErrorMsg /\s\+$/ is not respected for whitespace
- feature: Latest stable release tag
- bug: misc/feline.lua does not properly show all of the icons in the statusline HOT 1
- feature: border line colour
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightfox.nvim.