mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-05 23:29:27 +01:00
change some more nvim theming
This commit is contained in:
parent
d37b3b22b4
commit
102b662af7
4 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
(local (cmp luasnip mztenv)
|
(local (cmp luasnip mztenv)
|
||||||
(values (require :cmp) (require :luasnip) (require :mzte_nv)))
|
(values (require :cmp) (require :luasnip) (require :mzte_nv)))
|
||||||
|
|
||||||
(local sources {:buffer " "
|
(local sources {:buffer " "
|
||||||
:conjure " "
|
:conjure " "
|
||||||
:crates " "
|
:crates " "
|
||||||
:luasnip " "
|
:luasnip " "
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
{:sources (cmp.config.sources [{:name :path}]
|
{:sources (cmp.config.sources [{:name :path}]
|
||||||
[{:name :cmdline}])})
|
[{:name :cmdline}])})
|
||||||
|
|
||||||
(local signs {:Error " " :Warn " " :Hint " " :Info " "})
|
(local signs {:Error " " :Warn " " :Hint " " :Info " "})
|
||||||
|
|
||||||
(each [k v (pairs signs)]
|
(each [k v (pairs signs)]
|
||||||
(let [hl (.. :DiagnosticSign k)]
|
(let [hl (.. :DiagnosticSign k)]
|
||||||
|
|
|
@ -17,3 +17,9 @@
|
||||||
;; Shift-Enter to redirect cmdline
|
;; Shift-Enter to redirect cmdline
|
||||||
(vim.keymap.set :c :<S-Enter> #(noice.redirect (vim.fn.getcmdline))
|
(vim.keymap.set :c :<S-Enter> #(noice.redirect (vim.fn.getcmdline))
|
||||||
{:desc "Redirect Cmdline"})
|
{: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}))
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
;; CPBuf command
|
;; CPBuf command
|
||||||
(vim.api.nvim_create_user_command :CPBuf mztenv.cpbuf.copyBuf {:nargs 0})
|
(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
|
;; Compile commands
|
||||||
(let [compile-path mztenv.compile.compilePath
|
(let [compile-path mztenv.compile.compilePath
|
||||||
make-cmd vim.api.nvim_create_user_command]
|
make-cmd vim.api.nvim_create_user_command]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
;; Keywords
|
;; Keywords
|
||||||
(("async" @keyword) (#set! conceal ""))
|
(("async" @keyword) (#set! conceal ""))
|
||||||
(("await" @keyword) (#set! conceal ""))
|
(("await" @keyword) (#set! conceal ""))
|
||||||
(("dyn" @keyword) (#set! conceal ""))
|
(("dyn" @keyword) (#set! conceal ""))
|
||||||
(("else" @keyword) (#set! conceal ""))
|
(("else" @keyword) (#set! conceal ""))
|
||||||
(("enum" @keyword) (#set! conceal ""))
|
(("enum" @keyword) (#set! conceal ""))
|
||||||
(("fn" @keyword) (#set! conceal "λ"))
|
(("fn" @keyword) (#set! conceal "λ"))
|
||||||
|
|
Loading…
Reference in a new issue