Code Monkey home page Code Monkey logo

Comments (12)

kyazdani42 avatar kyazdani42 commented on May 7, 2024 1

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.

meain avatar meain commented on May 7, 2024 1

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.

kyazdani42 avatar kyazdani42 commented on May 7, 2024

i'm gonna take a look, formatting might be badly handled without the vim-devicons package

from nvim-tree.lua.

kyazdani42 avatar kyazdani42 commented on May 7, 2024

I cannot reproduce, can you specify your environment ? (os, terminal, $TERM variable)

from nvim-tree.lua.

meain avatar meain commented on May 7, 2024

OS: macOS 10.13.6
terminal: alacritty
TERM: screen256-color
tmux: 3.0a
nvim: v0.5.0-36d1335

from nvim-tree.lua.

kyazdani42 avatar kyazdani42 commented on May 7, 2024

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.

meain avatar meain commented on May 7, 2024

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.

meain avatar meain commented on May 7, 2024

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.

kyazdani42 avatar kyazdani42 commented on May 7, 2024

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.

meain avatar meain commented on May 7, 2024

Yeah, I guess having an option to disable glyphs should work.

from nvim-tree.lua.

meain avatar meain commented on May 7, 2024

Coo, that seems to work. Thanks for the plugin!

from nvim-tree.lua.

kyazdani42 avatar kyazdani42 commented on May 7, 2024

I'll think about a proper way to do this. Specifying an object should be more appropriate

from nvim-tree.lua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.