aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lightline-base.vim18
-rw-r--r--.config/nvim/mode.vim13
2 files changed, 3 insertions, 28 deletions
diff --git a/.config/nvim/lightline-base.vim b/.config/nvim/lightline-base.vim
deleted file mode 100644
index 968b4b1..0000000
--- a/.config/nvim/lightline-base.vim
+++ /dev/null
@@ -1,18 +0,0 @@
-let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
-let s:p.normal.left = [ [ s:fg, s:mode ], [ s:faint, s:bg ] ]
-let s:p.normal.right = [ [ s:faint, s:bg ] ]
-let s:p.normal.middle = [ [ s:none, s:none ] ]
-let s:p.normal.error = [ [ s:test, s:test ] ]
-let s:p.normal.warning = [ [ s:test, s:test ] ]
-let s:p.inactive.left = copy(s:p.normal.left)
-let s:p.inactive.right = copy(s:p.normal.right)
-let s:p.inactive.middle = copy(s:p.normal.middle)
-let s:p.insert.left = copy(s:p.normal.left)
-let s:p.replace.left = copy(s:p.insert.left)
-let s:p.visual.left = copy(s:p.insert.left)
-let s:p.tabline.left = copy(s:p.normal.right)
-let s:p.tabline.tabsel = [ [ s:fg, s:mode ] ]
-let s:p.tabline.middle = copy(s:p.normal.right)
-let s:p.tabline.right = copy(s:p.normal.right)
-
-let g:lightline#colorscheme#auto#palette = lightline#colorscheme#flatten(s:p)
diff --git a/.config/nvim/mode.vim b/.config/nvim/mode.vim
index 3ab04cb..e1deaca 100644
--- a/.config/nvim/mode.vim
+++ b/.config/nvim/mode.vim
@@ -1,15 +1,8 @@
" this file should only contain colorscheme information, and sourcing it
" should cause colors set by `mode` to update in an existing neovim session
-
-if filereadable(expand("$XDG_DATA_HOME/mode/light"))
- colorscheme github-light
-else
- colorscheme ghdark
-endif
-
-source $XDG_CONFIG_HOME/nvim/termcolors.vim
-
-source $XDG_CONFIG_HOME/nvim/lightline.vim
+source $XDG_CONFIG_HOME/nvim/mode/colorscheme.vim
+source $XDG_CONFIG_HOME/nvim/mode/termcolors.vim
+source $XDG_CONFIG_HOME/nvim/mode/lightline.vim
call lightline#colorscheme()
source $XDG_CONFIG_HOME/nvim/color-tweaks.vim