From d58fef75110e86b82436f189608187e7984b7a75 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 15 Jul 2023 12:34:26 -0400 Subject: [PATCH] editorconfig: Don't trim markdown whitespace Fixes an issue where auto-indents would be automatically removed with the auto-save plugin enabled. Should probably fix this behavior later so auto-indent works properly with all files. --- home/neovim.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/neovim.nix b/home/neovim.nix index 98cbf13..2f4620f 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -73,7 +73,10 @@ in trim_trailing_whitespace = true; }; - "*.md".indent_style = "tab"; + "*.md" = { + indent_style = "tab"; + trim_trailing_whitespace = false; + }; "Makefile" = { indent_style = "tab";