Skip to content

Bug: dirvish#add_icon_fn break help file highlighting #253

Closed
brianhuster/vim-dirvish
#1
@brianhuster

Description

@brianhuster

I find it hard to explain, so I will go straight to reproducing

  1. git clone --depth=1 https://github.com/justinmk/vim-dirvish
  2. Create a file repro.vim in current directory and add the following
set rtp+=./vim-dirvish
helptags ALL
call dirvish#add_icon_fn({p -> p[-1:] == '/' ? '📂' : '📄'})
runtime! plugin/dirvish.vim
  1. Open Nvim with nvim -u repro.vim
  2. Open Dirvish with :Dirvish
  3. Open any help doc. Eg. :h dirvish
  4. You will see something similar to what I see

Image

Neovim version

NVIM v0.11.0-dev-1589+g71507281fb                                                                                                                                          
Build type: RelWithDebInfo                                                                                                                                                 
LuaJIT 2.1.1736781742                  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions