about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-06 23:19:20 +0900
committersefidel <contact@sefidel.net>2022-03-06 23:22:41 +0900
commit53f51bca6a5235a38b2c6bcf73c02c0873ac7670 (patch)
tree99bf8172eff06e55faae35a65b1d6e4b409084da
parentf5cc3f01fae31acdb35b9c70b739a130b059f05f (diff)
downloadnvimrc-53f51bca6a5235a38b2c6bcf73c02c0873ac7670.tar.gz
nvimrc-53f51bca6a5235a38b2c6bcf73c02c0873ac7670.zip
feat(ui): info before hint
-rw-r--r--fnl/nvrc/statusline.fnl6
1 files changed, 3 insertions, 3 deletions
diff --git a/fnl/nvrc/statusline.fnl b/fnl/nvrc/statusline.fnl
index fbac5a8..af4cedc 100644
--- a/fnl/nvrc/statusline.fnl
+++ b/fnl/nvrc/statusline.fnl
@@ -16,11 +16,11 @@
     (when (not= (. count :warnings) 0)
       (set warnings
            (.. " %#DiagnosticSignWarn#W" (. count :warnings))))
-    (when (not= (. count :hints) 0)
-      (set hints (.. " %#DiagnosticSignHint#H" (. count :hints))))
     (when (not= (. count :info) 0)
       (set info (.. " %#DiagnosticSignInformation#I" (. count :info))))
-    (.. errors warnings hints info "%#StatusLine#")))
+    (when (not= (. count :hints) 0)
+      (set hints (.. " %#DiagnosticSignHint#H" (. count :hints))))
+    (.. errors warnings info hints "%#StatusLine#")))
 
 (global statusline {})
 (set statusline.enable (fn []