From 102b662af7daa8a61f85035b9d6ef451a9c73735 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Thu, 8 Jun 2023 19:57:16 +0200 Subject: [PATCH] change some more nvim theming --- mzte-nv/conf/lua/pluginconf/p-cmp.fnl | 4 ++-- mzte-nv/conf/lua/pluginconf/p-noice.fnl | 6 ++++++ mzte-nv/conf/lua/settings.fnl | 3 +++ mzte-nv/conf/queries/rust/highlights.scm | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mzte-nv/conf/lua/pluginconf/p-cmp.fnl b/mzte-nv/conf/lua/pluginconf/p-cmp.fnl index cfc885c..5d17d17 100644 --- a/mzte-nv/conf/lua/pluginconf/p-cmp.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-cmp.fnl @@ -1,7 +1,7 @@ (local (cmp luasnip mztenv) (values (require :cmp) (require :luasnip) (require :mzte_nv))) -(local sources {:buffer " ﬘" +(local sources {:buffer " " :conjure " " :crates " " :luasnip " " @@ -32,7 +32,7 @@ {:sources (cmp.config.sources [{:name :path}] [{:name :cmdline}])}) -(local signs {:Error " " :Warn " " :Hint " " :Info " "}) +(local signs {:Error " " :Warn " " :Hint " " :Info " "}) (each [k v (pairs signs)] (let [hl (.. :DiagnosticSign k)] diff --git a/mzte-nv/conf/lua/pluginconf/p-noice.fnl b/mzte-nv/conf/lua/pluginconf/p-noice.fnl index faef9d4..6f243ee 100644 --- a/mzte-nv/conf/lua/pluginconf/p-noice.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-noice.fnl @@ -17,3 +17,9 @@ ;; Shift-Enter to redirect cmdline (vim.keymap.set :c : #(noice.redirect (vim.fn.getcmdline)) {:desc "Redirect Cmdline"}) + +;; These default to info diagnostic colors (WTF) +(each [_ hl (pairs [:NoiceCmdlinePopupBorder + :NoiceCmdlineIcon + :NoiceCmdlinePopupTitle])] + (vim.api.nvim_set_hl 0 hl {:link :DraculaCyan})) diff --git a/mzte-nv/conf/lua/settings.fnl b/mzte-nv/conf/lua/settings.fnl index 6d22b76..7b123d0 100644 --- a/mzte-nv/conf/lua/settings.fnl +++ b/mzte-nv/conf/lua/settings.fnl @@ -4,6 +4,9 @@ ;; CPBuf command (vim.api.nvim_create_user_command :CPBuf mztenv.cpbuf.copyBuf {:nargs 0}) +;; Make info diagnostics green to differentiate from hints +(vim.api.nvim_set_hl 0 :DiagnosticInfo {:link :DraculaGreen}) + ;; Compile commands (let [compile-path mztenv.compile.compilePath make-cmd vim.api.nvim_create_user_command] diff --git a/mzte-nv/conf/queries/rust/highlights.scm b/mzte-nv/conf/queries/rust/highlights.scm index 5c47490..ff7ed5c 100644 --- a/mzte-nv/conf/queries/rust/highlights.scm +++ b/mzte-nv/conf/queries/rust/highlights.scm @@ -3,7 +3,7 @@ ;; Keywords (("async" @keyword) (#set! conceal "󰜨")) (("await" @keyword) (#set! conceal "")) -(("dyn" @keyword) (#set! conceal "﫢")) +(("dyn" @keyword) (#set! conceal "󱥒")) (("else" @keyword) (#set! conceal "")) (("enum" @keyword) (#set! conceal "")) (("fn" @keyword) (#set! conceal "λ"))