dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 7a0c12d00c2747f36efe9c19c1147803858aa8f9
parent 35526f1ffa3e703e9bc34d8fb89b0213e984681d
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 14 May 2024 23:33:05 -0700

vim: eliminate SpaceHi plugin

This plugin highlights whitespace that doesn't match the configured
style settings, such as trailing whitespace.

In practice highlighting the whitespace such that the user can manually
fix it is a poorer alternative to simply running a formatter or a
presubmit that catches and potentially fixes the whitespace automatically.

Diffstat:
M.config/nvim/init.vim | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -12,7 +12,6 @@ Plug 'craftzdog/solarized-osaka.nvim' " Formatting. Plug 'rhysd/vim-clang-format' " clang-format. -Plug 'vim-scripts/spacehi.vim' " Highlight bad whitespace. " Language support plugins. Plug 'https://gn.googlesource.com/gn', { 'rtp': 'misc/vim' } @@ -75,10 +74,6 @@ set shiftwidth=2 " Number of spaces for each step of autoindent. set softtabstop=2 " Number of spaces per tab when editing. set expandtab " Insert spaces in place of tabs. -" Configure whitespace highlighting. -let g:spacehi_spacecolor="ctermbg=red" -let g:spacehi_tabcolor="ctermbg=red" - " Configure tag file locations. set tags+=~/.local/tags/system.tags set tags+=~/.local/tags/cxx.tags @@ -134,9 +129,6 @@ if &t_Co > 2 au BufEnter,InsertLeave *.java,*.m,*.mm set colorcolumn=100 au BufEnter,InsertLeave *.java,*.m,*.mm set textwidth=100 - " Highlight trailing space - au BufEnter,InsertLeave *.bzl,*.c,*.cc,*.cpp,*.cs,*.dart,*.h,*.java,*.m,*.mm,*.py,*.s SpaceHi - " Fix python's indent overrides. au FileType python setl ts=2 sw=2 sts=2 et endif