Comments (12)
ok it's fixed now.
You should be able to specify g:lua_tree_show_folders=0
and g:lua_tree_show_git_icons=0
from nvim-tree.lua.
I think something like lua_tree_show_icons
or lua_tree_show_glyphs
might be a better a name for the variable though.
from nvim-tree.lua.
i'm gonna take a look, formatting might be badly handled without the vim-devicons package
from nvim-tree.lua.
I cannot reproduce, can you specify your environment ? (os, terminal, $TERM variable)
from nvim-tree.lua.
OS: macOS 10.13.6
terminal: alacritty
TERM: screen256-color
tmux: 3.0a
nvim: v0.5.0-36d1335
from nvim-tree.lua.
i use alacritty with tmux on linux. When i tested on macos with tmux and iterm it worked fine too.
Maybe your font is the culprit, i'll try something that don't support unicode and see if it happens.
Which font did you specify in your alacritty.yml ?
from nvim-tree.lua.
I was using CamingoCode
in that screenshot. I tried it out with other fonts too.
I don't think it is because of the font because it works fine for folders.
Also I tried it with a font that has some icons, and it seems that only folders have icons assigned. I do not have WebDevIconsGetFileTypeSymbol
thing. This is just my font icons, I think. If you see, there is nothing that gets displayed for files, only for folders. Maybe something related to that?
from nvim-tree.lua.
It seems to work fine with this, but the git highlight for files is broken
diff --git a/lua/lib/format.lua b/lua/lib/format.lua
index 9bf5ddb..7588d2f 100644
--- a/lua/lib/format.lua
+++ b/lua/lib/format.lua
@@ -19,7 +19,7 @@ local function default_icons(_, isdir, open)
return " "
end
- return ""
+ return " "
end
local function create_matcher(arr)
from nvim-tree.lua.
Hum yes i tried to find a font that doesn't display folders but i didn't find one. Its because i display folders without the WebDevIconsGetFileTypeSymbol
so if your font doesnt have it it might cause weird stuff.
The issue is that these icons takes 3/4 bytes so the UI highlighting is a little hard to do dynamically.
Would making an option for displaying glyphs solve this ?
from nvim-tree.lua.
Yeah, I guess having an option to disable glyphs should work.
from nvim-tree.lua.
Coo, that seems to work. Thanks for the plugin!
from nvim-tree.lua.
I'll think about a proper way to do this. Specifying an object should be more appropriate
from nvim-tree.lua.
Related Issues (20)
- Provide interface to customize the comparing function between two nodes HOT 1
- 0.10 luadoc and lsp integration
- Parent folder deleted when deleting a folder starting with $ HOT 4
- Make it easy to discover useful shortcuts HOT 2
- New File getting opened in floating window. HOT 5
- Module `nvim-tree.renderer.help` not found when install nvim-tree through Lazy HOT 3
- nvim-tree not respecting diagnostics update_in_insert value set by neovim HOT 8
- Float window for full filenames has wrong bg HOT 2
- Floating nvim-tree does not respect config on startup HOT 17
- Right aligned icons HOT 1
- web-devicons default not used HOT 4
- Can't create a file in neovim using nvim-tree.lua(fs_close bad argument #1) HOT 6
- [NvimTree] Could not start the fs_event watcher for path /xxxx/xxxx : ENOSPC HOT 8
- Is it not in the AUR?(Have been solved) HOT 2
- Opening a tree in a new tab messes up local statusline settings HOT 6
- Colors of NvimTree as floating window different as expected (configured) HOT 2
- Unable to open file in new tab HOT 2
- nvim-web-devicons user overrides are clobbered HOT 1
- enable deprecated warnings, minimum neovim version 0.9, harden support for greater versions HOT 3
- Allow nodes to expand until a certain condition is met.
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-tree.lua.