Skip to content

Using nvim-tree.lua in combination with ntpeters/vim-better-whitespace causes whitespaces to be highlighted in insert mode #592

Closed
@xfzv

Description

@xfzv

For some reasons, if using nvim-tree.lua in combination with ntpeters/vim-better-whitespace, the whitespaces are highlighted while being in insert mode, which isn't supposed to happen. Disabling nvim-tree.lua fixes the issue.

Simple init.vim to reproduce the issue (I'm loading the two plugins with vim-plug)

I used a markdown file for the demonstration but it occurs with any filetype (conf, html, json,sh...)

call plug#begin("~/.config/nvim/plugged")
Plug 'ntpeters/vim-better-whitespace'
Plug 'kyazdani42/nvim-tree.lua'
call plug#end()
 
autocmd FileType markdown EnableWhitespace

01


After disabling nvim-tree.lua

call plug#begin("~/.config/nvim/plugged")
Plug 'ntpeters/vim-better-whitespace'
"Plug 'kyazdani42/nvim-tree.lua'
call plug#end()
 
autocmd FileType markdown EnableWhitespace

02

Any idea?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions