vim-better-whitespace
vim-better-whitespace copied to clipboard
Whitespace-only lines are not highlighted
Hello,
I think that I have discovered a bug where whitespace-only lines are not highlighted. Please have a look at the line number 25 from the attached screenshot.
The ":NextTrailingWhitespace" command jumps to that place, so it seems that the plugin correctly interprets this place, but for some reason it does not highlight it.
Hi there, thanks for reporting the issue. Can you specify what your version of vim is? Does the issue still happen without any other plugins installed?
You can easily override the vimrc from the command line. If you installed the plugin under the vim-better-whitespace
package subdirectory, that could look like:
> printf '%s\n' 'set nocp' 'packadd vim-better-whitespace' > min-vimrc
> vim -u min-vimrc .vim/pack/default/start/vim-better-whitespace/whitespace_examples.txt
Hello,
I use Neovim:
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1700008891
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "
/home/linuxbrew/.linuxbrew/Cellar/neovim/0.9.4/share/nvim"
Run :checkhealth for more info
For plugins management, I use Lazy.nvim. This is the minimal init.lua config that reproduces the problem. Removal of either "tomasiser/vim-code-dark" or "lukas-reineke/indent-blankline.nvim" fixes the problem. I'll get rid of the latter because it's not the first time it doesn't want to integrate smoothly with other plugins.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{ 'tomasiser/vim-code-dark', -- color scheme
config = function()
vim.cmd("colorscheme codedark")
end
},
{ 'ntpeters/vim-better-whitespace' },
{ "lukas-reineke/indent-blankline.nvim", -- indent guidelines
config = function()
require("ibl").setup()
end
},
})