nvim: Prevent % (LSP) from crashing the statusline
This commit is contained in:
parent
b38acff125
commit
7818471195
1 changed files with 2 additions and 1 deletions
|
@ -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 ""}}
|
||||||
|
|
Loading…
Reference in a new issue