Mercurial > dotfiles
comparison .chezmoitemplates/init.lua @ 714:587765960227
feat: set global dark option
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 30 Nov 2022 18:11:07 +0100 |
parents | 45c34cfecc3e |
children | 28900bda2334 |
comparison
equal
deleted
inserted
replaced
713:45c34cfecc3e | 714:587765960227 |
---|---|
639 end | 639 end |
640 end, | 640 end, |
641 } | 641 } |
642 use { | 642 use { |
643 local_plugin 'espresso-tutti-colori.nvim', | 643 local_plugin 'espresso-tutti-colori.nvim', |
644 config = function() | 644 config = function() require('tutti-colori').setup() end, |
645 require('tutti-colori').setup() | 645 } |
646 require('tutti-colori').load() | 646 use { |
647 'catppuccin/nvim', | |
648 as = 'catppuccin', | |
649 config = function() | |
650 require('catppuccin').setup { | |
651 flavour = 'mocha', | |
652 } | |
647 end, | 653 end, |
648 } | 654 } |
649 | 655 |
650 -- Terminal | 656 -- Terminal |
651 use { | 657 use { |
680 end, | 686 end, |
681 config = { snapshot_path = vim.fn.stdpath 'config' }, | 687 config = { snapshot_path = vim.fn.stdpath 'config' }, |
682 } | 688 } |
683 | 689 |
684 vim.cmd.packadd 'dirbuf.nvim' | 690 vim.cmd.packadd 'dirbuf.nvim' |
691 | |
692 if os.getenv 'DARKMODE' then | |
693 vim.cmd.colorscheme 'catppuccin' | |
694 else | |
695 vim.cmd.colorscheme 'espresso-tutti-colori' | |
696 end | |
685 | 697 |
686 -- Configuration | 698 -- Configuration |
687 local opt = vim.opt | 699 local opt = vim.opt |
688 | 700 |
689 opt.backspace = { 'indent', 'eol', 'start' } -- Backspace everything | 701 opt.backspace = { 'indent', 'eol', 'start' } -- Backspace everything |