mzte-nv: update catppuccin configuration

This commit is contained in:
LordMZTE 2024-04-28 19:57:19 +02:00
parent 60650dd6af
commit 5774d8a102
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 25 additions and 8 deletions

View file

@ -5,19 +5,36 @@
(local flavour :mocha)
(catppuccin.setup {: flavour
:term_colors true
:dim_inactive {:enabled true}
;; Enable all relevant integrations
:default_integrations false
:integrations {:aerial true
:cmp true
:dap {:enabled true :enable_ui true}
:dap true
:dap_ui true
:gitsigns true
:harpoon true
:native_lsp {:enabled true}
:markdown true
:native_lsp {:enabled true
:virtual_text (collect [_ diag (ipairs [:errors
:hints
:warnings
:information])]
(values diag
[:italic]))
:underlines (collect [_ diag (ipairs [:errors
:hints
:warnings
:information])]
(values diag
[:underline]))
:inlay_hints {:background true}}
:neogit true
:noice true
:notify true
:nvimtree true
:rainbow_delimiters true
:telescope true
:semantic_tokens true
:telescope {:enabled true}
:treesitter true
:treesitter_context true}})

View file

@ -5,7 +5,7 @@
(let [path mztenv.reg.nvim_plugins]
(when path
(vim.opt.runtimepath:prepend (.. path "/*"))
(vim.opt.runtimepath:append (.. path "/*/after"))))
(vim.opt.runtimepath:append (.. path :/*/after))))
;; Plugins to load before nvim finishes startup
(local startup-plugins [])
@ -41,7 +41,7 @@
(fn load-plugin [plugin]
(let [(success ret) (pcall require (.. :pluginconf/p- plugin))]
(when (not success)
(tset errors p ret))))
(tset errors plugin ret))))
(each [_ p (ipairs startup-plugins)]
(load-plugin p))
@ -55,7 +55,7 @@
(do
(when (next errors)
(vim.notify (accumulate [text "Errors loading plugin configs:\n" plugin err (pairs errors)]
(.. text " - " plugin ": " err))
(.. text " - " plugin ": " err "\n"))
vim.log.levels.error))
(each [_ cb (ipairs mztenv.reg.plugin_load_callbacks)]
(pcall cb))))))