2023-06-27 22:30:06 +02:00
|
|
|
(local (mztenv catppuccin palettes)
|
|
|
|
(values (require :mzte_nv) (require :catppuccin)
|
|
|
|
(require :catppuccin.palettes)))
|
2023-06-11 00:45:09 +02:00
|
|
|
|
2023-06-27 22:30:06 +02:00
|
|
|
(local flavour :mocha)
|
|
|
|
|
|
|
|
(catppuccin.setup {: flavour
|
2024-04-28 19:57:19 +02:00
|
|
|
:term_colors true
|
|
|
|
:dim_inactive {:enabled true}
|
2023-06-27 22:30:06 +02:00
|
|
|
;; Enable all relevant integrations
|
2024-04-28 19:57:19 +02:00
|
|
|
:default_integrations false
|
2024-04-28 21:58:28 +02:00
|
|
|
:integrations {:cmp true
|
2024-04-28 19:57:19 +02:00
|
|
|
:dap true
|
|
|
|
:dap_ui true
|
2023-07-22 12:46:12 +02:00
|
|
|
:gitsigns true
|
|
|
|
:harpoon true
|
2024-04-28 21:58:28 +02:00
|
|
|
:lsp_saga true
|
2024-04-28 19:57:19 +02:00
|
|
|
: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}}
|
2023-07-22 12:46:12 +02:00
|
|
|
:neogit true
|
2023-06-11 00:45:09 +02:00
|
|
|
:nvimtree true
|
2023-07-22 12:46:12 +02:00
|
|
|
:rainbow_delimiters true
|
2024-04-28 19:57:19 +02:00
|
|
|
:semantic_tokens true
|
|
|
|
:telescope {:enabled true}
|
2023-06-11 00:45:09 +02:00
|
|
|
:treesitter true
|
2023-07-22 12:46:12 +02:00
|
|
|
:treesitter_context true}})
|
2023-06-11 00:45:09 +02:00
|
|
|
|
|
|
|
(vim.cmd.colorscheme :catppuccin)
|
2023-06-27 22:30:06 +02:00
|
|
|
|
|
|
|
;; Optimize this by saving the palette table
|
|
|
|
(let [get-palette palettes.get_palette]
|
|
|
|
(set mztenv.reg.catppuccin-palette (get-palette))
|
|
|
|
(set palettes.get_palette
|
|
|
|
(fn [flav]
|
|
|
|
(if (or (not flav) (= flav flavour)) mztenv.reg.catppuccin-palette
|
|
|
|
(get-palette flav)))))
|