From 781847119511fecfe53b47963210f3fbcc712193 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 27 Sep 2022 00:49:33 +0200 Subject: [PATCH] nvim: Prevent % (LSP) from crashing the statusline --- home/config/nvim/nifoc/statusline.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/config/nvim/nifoc/statusline.fnl b/home/config/nvim/nifoc/statusline.fnl index 0ab9624..8b1f292 100644 --- a/home/config/nvim/nifoc/statusline.fnl +++ b/home/config/nvim/nifoc/statusline.fnl @@ -230,7 +230,8 @@ (set self.check-length 1) (set self.check-length 0))) 1 mod.space-if-length - 2 {:provider #(navic.get_location) :hl {:fg colors.white}}}) + 2 {:provider #(string.gsub (navic.get_location) "%%" "") + :hl {:fg colors.white}}}) ;; Buffer Options (set mod.buffer-options {:static {:format {:dos "" :unix "" :mac ""}}