Comments (12)
I solved some of my issue. Part of it was I had to set some things for the file tree explorer itself. However, the default icon isn't working for everything.
from nvim-web-devicons.
To confirm: does the default default icon show when you remove set_default_icon
?
from nvim-web-devicons.
To confirm: does the default default icon show when you remove
set_default_icon
?
Not sure what you mean... if I delete the set_delete_icon
function does the default icon show??
from nvim-web-devicons.
Here is also another thing I am seeing -- I would assume the default icon would take over here when the TelescopePrompt
comes up but it doesn't... However, it does when the help
buffer is open. Check the status bar on the bottom right.
from nvim-web-devicons.
Experimenting with your setup:
require("nvim-web-devicons").set_default_icon('D', '#6d8086', 65)
print(vim.inspect(require("nvim-web-devicons").get_default_icon()))
{
color = "#6d8086",
cterm_color = 65,
icon = "D",
name = "Default"
}
require("nvim-web-devicons").set_default_icon('X')
print(vim.inspect(require("nvim-web-devicons").get_default_icon()))
{
icon = "X",
name = "Default"
}
That is working as intended, presuming that icon
in your screenshot is require("nvim-web-devicons")
from nvim-web-devicons.
To confirm: does the default default icon show when you remove
set_default_icon
?Not sure what you mean... if I delete the
set_delete_icon
function does the default icon show??
Yes.
However... that's not to say that nvim-tree, telescope or lualine will actually use it, they may use their own.
Experimenting with nvim-tree and :NvimWebDeviconsHiTest
shows that the default icon is not shown or used. Investigating...
from nvim-web-devicons.
:NvimWebDeviconsHiTest
not showing the default is unrelated. Fixed at #451
nvim-tree is not showing the default icon, contradicting help:
*nvim-tree.renderer.icons.web_devicons.file.enable*
Show icons on files.
Overrides |nvim-tree.renderer.icons.glyphs.default|
Type: `boolean`, Default: `true`
*nvim-tree.renderer.icons.glyphs.default*
Glyph for files.
Overridden by |nvim-tree.renderer.icons.web_devicons| if available.
Type: `string`, Default: `""`
Raised nvim-tree/nvim-tree.lua#2758
from nvim-web-devicons.
RE lualine: it does not show default icons. I'll leave telescope to you...
Does resolution of this issue resolve your concerns?
nvim-tree/nvim-tree.lua#2758 (comment)
from nvim-web-devicons.
RE lualine: it does not show default icons. I'll leave telescope to you...
Does resolution of this issue resolve your concerns? nvim-tree/nvim-tree.lua#2758 (comment)
I left a comment over there. Happy to test, just unsure how.
from nvim-web-devicons.
Fixed via nvim-tree nvim-tree/nvim-tree.lua#2759
from nvim-web-devicons.
@alex-courtis Still not seeing the default icon taking effect even after updating nvim-tree.
from nvim-web-devicons.
@alex-courtis Still not seeing the default icon taking effect even after updating nvim-tree.
That's no good; we'll get to the bottom of this. I reckon it's nvim-tree.
Please raise an nvim-tree bug report with your nvim-tree and nvim-webdevicons minimal configuration so that we may reproduce and fix.
from nvim-web-devicons.
Related Issues (20)
- Add openscad icon HOT 1
- Rename `:NvimWebDeviconsHiTest` to anything else like `WebDeviconsHiTest` HOT 8
- Regression: `NvimWebDeviconsHiTest` crashes HOT 5
- Missing icon for Java HOT 2
- :help HOT 1
- Some icons not show correctly HOT 2
- Incorrect NF symbol shown for Rust HOT 5
- Create a category for icons from desktop environments and window managers HOT 2
- Cannot override some icons by filename HOT 7
- TeX icon incorrect HOT 1
- [QUESTION]: how to add custom icon to laravel blade files HOT 4
- Invalid highlight name HOT 15
- change only icon color HOT 1
- W18 invalid character in a group name HOT 2
- FR: differentiate `.d.ts` from `.ts` files (typescript) HOT 3
- Add known issue to README
- Custom icons not working on latest nvim nightly HOT 7
- Gulpfile and Gruntfile incorrect icon HOT 12
- Add issue template HOT 6
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 nvim-web-devicons.