From 0de915f9a8c4fd2f8ffe6d10523de02182d19de6 Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Sun, 2 Jan 2022 11:38:12 +0800 Subject: [PATCH] Convert colors/lush_template.vim -> colors/lush_template.lua --- colors/lush_template.lua | 21 +++++++++++++++++++++ colors/lush_template.vim | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 colors/lush_template.lua delete mode 100644 colors/lush_template.vim diff --git a/colors/lush_template.lua b/colors/lush_template.lua new file mode 100644 index 0000000..b4b5c51 --- /dev/null +++ b/colors/lush_template.lua @@ -0,0 +1,21 @@ +-- You probably always want to set this in your vim file +vim.opt.background = 'dark' +vim.g.colors_name = 'lush_template' + +-- By setting our module to nil, we clear lua's cache, +-- which means the require ahead will *always* occur. +-- +-- This isn't strictly required but it can be a useful trick if you are +-- incrementally editing your config a lot and want to be sure your themes +-- changes are being picked up without restarting neovim. +-- +-- Note if you're working in on your theme and have :Lushify'd the buffer, +-- your changes will be applied with our without the following line. +-- +-- The performance impact of this call can be measured in the hundreds of +-- *nanoseconds* and such could be considered "production safe". +package.loaded['lush_theme.lush_template'] = nil + +-- include our theme file and pass it to lush to apply +require('lush')(require('lush_theme.lush_template')) + diff --git a/colors/lush_template.vim b/colors/lush_template.vim deleted file mode 100644 index c411c14..0000000 --- a/colors/lush_template.vim +++ /dev/null @@ -1,21 +0,0 @@ -" You probably always want to set this in your vim file -set background=dark -let g:colors_name="lush_template" - -" By setting our module to nil, we clear lua's cache, -" which means the require ahead will *always* occur. -" -" This isn't strictly required but it can be a useful trick if you are -" incrementally editing your config a lot and want to be sure your themes -" changes are being picked up without restarting neovim. -" -" Note if you're working in on your theme and have :Lushify'd the buffer, -" your changes will be applied with our without the following line. -" -" The performance impact of this call can be measured in the hundreds of -" *nanoseconds* and such could be considered "production safe". -lua package.loaded['lush_theme.lush_template'] = nil - -" include our theme file and pass it to lush to apply -lua require('lush')(require('lush_theme.lush_template')) -