From 60febc33a42452aed245dbd5951b5ab8b101aa57 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 11 Jun 2021 20:38:29 +0200 Subject: vim: use lua for colors --- .vim/colors/lush.lua | 7 +++++++ .vim/colors/lush.vim | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 .vim/colors/lush.lua delete mode 100644 .vim/colors/lush.vim 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 -- cgit 1.4.1