Skip to content

[feature] allow forcing usage of custom configured icons without icon font #579

Open
@shmerl

Description

@shmerl

Description

I was trying to configure some basic symbols usage since I'm not using custom fonts, and this configuration didn't work as I expected:

         require("diffview").setup({
            icons = {
               folder_closed = "🗀",
               folder_open = "🗁",
            },
            signs = {
               fold_closed = "🞂",
               fold_open = "🞃",
               done = ""
            }
         })

What I got in result is that it used 🞂 and 🞃 for opened / closed folders. I expected it to be used for folds? And it didn't use folder_closed / folder_opened for folders.

Am I missing something here?

Thank you!

Expected behavior

Image

Actual behavior

Image

Steps to reproduce

Configure the plugin as shown above.

Health check

Output of :checkhealth diffview
iffview:                                   require("diffview.health").check() 
 
Checking plugin dependencies 
- ⚠ WARNING Optional dependency 'nvim-web-devicons' not found. 
 
Checking VCS tools 
- The plugin requires at least one of the supported VCS tools to be valid. 
- ✅ OK Git found. 
- ✅ OK Git is up-to-date. (2.49.0) 
- ⚠ WARNING Configured hg_cmd is not executable: 'hg' 
 
~

Log info

Relevant info from :DiffviewLog
############################
### PUT LOG CONTENT HERE ###
############################

Neovim version

NVIM v0.11.1
Build type: Release
LuaJIT 2.1.1741730670

Operating system and version

Debian testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions