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)
- LineNrAbove/Below Not Applying LineNr
- Add a `binaries` field to `nvim-tree-opts-filters` or `nvim-tree-opts-sort`
- NvimTree file highlighted as bad spell (SpellCap) HOT 14
- Validate Array Like Table Options
- When I bookmark files no icons come up after updating HOT 2
- Full And Sanitized Node Documentation HOT 1
- Annoyingly making .git as root always HOT 5
- Batch delete consecutive files.
- File operations should consider adding quotes when dealing with spaces HOT 1
- Inconsistent behavior: Python files from some folders are highlighted as `NvimTreeExecFile` HOT 6
- How can I make the nvim-tree display ".. "Folder?
- New git glyph option: 'added' HOT 7
- sync_root_with_cwd appears to be broken HOT 3
- Scrolling downwards is overriden by keymap HOT 3
- Incompatibility with fugitive and oil.nvim and other plugins HOT 5
- An option to control weather change root_folder when root_folder be clicked. HOT 1
- If using floating mode and creating a new file the floating window becomes the created file. HOT 2
- Bookmark filter should include parent directory HOT 1
- Bad contrast for NvimTreeWindowPicker & NvimTreeBookmarkHL on default colorscheme HOT 7
- Mappings/functionality discoverability discussion HOT 10
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.