diff options
| author | Robert Günzler <r@gnzler.io> | 2021-06-11 20:38:29 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-06-11 20:38:29 +0200 |
| commit | 60febc33a42452aed245dbd5951b5ab8b101aa57 (patch) | |
| tree | ad00444dfa85f1cee17c15aa02e54faeac3aa43f /.vim | |
| parent | f3af42e047793021bff1ca5f5e5ccb42cf890896 (diff) | |
vim: use lua for colors
Diffstat (limited to '.vim')
| -rw-r--r-- | .vim/colors/lush.lua | 7 | ||||
| -rw-r--r-- | .vim/colors/lush.vim | 9 |
2 files changed, 7 insertions, 9 deletions
diff --git a/.vim/colors/lush.lua b/.vim/colors/lush.lua new file mode 100644 index 0000000..eab2415 --- /dev/null +++ b/.vim/colors/lush.lua @@ -0,0 +1,7 @@ +if not vim.opt.termguicolors:get() then + return +end + +vim.g.colors_name = 'lush' +vim.opt.background = 'dark' +require('lush')(require('colors')) diff --git a/.vim/colors/lush.vim b/.vim/colors/lush.vim deleted file mode 100644 index 6759fb4..0000000 --- a/.vim/colors/lush.vim +++ /dev/null @@ -1,9 +0,0 @@ - -lua << EOF -vim.opt.background = 'dark' - -if vim.opt.termguicolors:get() then - vim.g.colors_name = 'lush' - require('lush')(require('colors')) -end -EOF |