change some more nvim theming

This commit is contained in:
LordMZTE 2023-06-08 19:57:16 +02:00
parent d37b3b22b4
commit 102b662af7
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
4 changed files with 12 additions and 3 deletions

View file

@ -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)]

View file

@ -17,3 +17,9 @@
;; Shift-Enter to redirect cmdline
(vim.keymap.set :c :<S-Enter> #(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}))

View file

@ -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]

View file

@ -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 "λ"))