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
|
|
|
|
;; Enable all relevant integrations
|
2023-06-11 00:45:09 +02:00
|
|
|
:integrations {:aerial true
|
|
|
|
:harpoon true
|
|
|
|
:gitsigns true
|
|
|
|
:neogit true
|
|
|
|
:noice true
|
|
|
|
:cmp true
|
|
|
|
:dap {:enabled true :enable_ui true}
|
|
|
|
:native_lsp {:enabled true}
|
|
|
|
:notify true
|
|
|
|
:nvimtree true
|
|
|
|
:treesitter true
|
|
|
|
:treesitter_context true
|
|
|
|
:ts_rainbow2 true
|
|
|
|
:telescope true}})
|
|
|
|
|
|
|
|
(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)))))
|