From 8bb483e6cfd9958ba178f5c7fdcf2f921c60d54c Mon Sep 17 00:00:00 2001 From: traxys Date: Tue, 1 Apr 2025 14:57:02 +0200 Subject: [PATCH] =?UTF-8?q?neovim:=20Highlight=20non=20breaking=20space?= =?UTF-8?q?=E2=80=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- neovim/config/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neovim/config/default.nix b/neovim/config/default.nix index 974eacc..f41b012 100644 --- a/neovim/config/default.nix +++ b/neovim/config/default.nix @@ -49,6 +49,16 @@ autoGroups.BigFileOptimizer = { }; autoCmd = [ + { + event = "BufWinEnter"; + pattern = "*"; + command = "call matchadd('BreakspaceChar', ' ')"; + } + { + event = "BufWinEnter"; + pattern = "*"; + command = "highlight BreakspaceChar ctermbg=red guibg=#f92672"; + } { event = "BufReadPost"; pattern = [