1
0
Fork 0

nvim: Prevent % (LSP) from crashing the statusline

This commit is contained in:
Daniel Kempkens 2022-09-27 00:49:33 +02:00
parent b38acff125
commit 7818471195
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -230,7 +230,8 @@
(set self.check-length 1) (set self.check-length 1)
(set self.check-length 0))) (set self.check-length 0)))
1 mod.space-if-length 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 ;; Buffer Options
(set mod.buffer-options (set mod.buffer-options
{:static {:format {:dos "" :unix "" :mac ""}} {:static {:format {:dos "" :unix "" :mac ""}}