Skip to content

Commit

Permalink
Partial fix for vim-better-whitespace issue
Browse files Browse the repository at this point in the history
I had this plugin turned off (at least in terms of automatically
removing whitespace on save). Based on the following issue, it's now
working as long as I remove all whitespace instead of just on changed
lines. Not ideal, but I think it'll be good enough for now.

See:
ntpeters/vim-better-whitespace#160 (comment)
  • Loading branch information
kstevens715 committed Dec 24, 2022
1 parent c2a49c1 commit bb42ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ vim.g.neoterm_default_mod = 'botright'
vim.g.neoterm_size = 33
vim.g.ruby_indent_assignment_style = 'variable'
vim.g.better_whitespace_enabled=1
vim.g.strip_only_modified_lines=1
vim.g.strip_whitespace_confirm=0
vim.g.strip_whitespace_on_save=0 -- This stopped working for some reason.
vim.g.strip_whitespace_on_save=1
vim.g.strip_only_modified_lines=0 --some bug with my `diff` command causes errors if this is set to 1
vim.g['test#ruby#rspec#options'] = { all = '--format progress' }
vim.g['test#strategy'] = 'neoterm'
vim.o.autoread = true
Expand Down

0 comments on commit bb42ec4

Please sign in to comment.