From 6c14b37a9fdaab1ca5394e16d24d035f8197bc9b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 26 Jul 2023 18:24:13 -0400 Subject: [PATCH] neovim: Don't trim trailing whitespace on save Fixes an issue where autosave would cause indentation to be lost due to editorconfig removing extra whitespace. --- home/neovim.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index 7179da44..ef8ae0cd 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -73,12 +73,11 @@ in insert_final_newline = true; indent_size = 2; indent_style = "space"; - trim_trailing_whitespace = true; + trim_trailing_whitespace = false; }; "*.md" = { indent_style = "tab"; - trim_trailing_whitespace = false; }; "Makefile" = {