From 7ca5b19c641840fa883a396a231165d8e0319177 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 9 Jul 2021 13:09:09 +0200 Subject: [PATCH 1/2] [nvim] Customized lualine gruvbox theme --- nvim/plugin/lualine.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nvim/plugin/lualine.vim diff --git a/nvim/plugin/lualine.vim b/nvim/plugin/lualine.vim new file mode 100644 index 0000000..c65966e --- /dev/null +++ b/nvim/plugin/lualine.vim @@ -0,0 +1,29 @@ +lua << EOF +local dotfiles_gruv = require'lualine.themes.gruvbox' +local colors = vim.g.dotfiles_colorscheme_base16_colors + +-- Structure of themes is as follows: +-- a: Outer components, such as `NORMAL` text and line counts +-- b: secondary components, such git branch info +-- c: Middle components, basically everything in the middle + +dotfiles_gruv.normal.a.bg = colors[12].gui + +dotfiles_gruv.insert.a.bg = colors[14].gui +dotfiles_gruv.insert.c.bg = colors[2].gui + +dotfiles_gruv.visual.a.bg = colors[15].gui +dotfiles_gruv.visual.c.bg = colors[2].gui +dotfiles_gruv.visual.c.fg = colors[7].gui + +dotfiles_gruv.command.a.bg = colors[16].gui +dotfiles_gruv.command.c.bg = colors[2].gui +dotfiles_gruv.command.c.fg = colors[7].gui + +require('lualine').setup{ + options = { + theme = dotfiles_gruv + } +} + +EOF From e7a5fc498e2f5afadc516d4969560ded25e99b2c Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 9 Jul 2021 13:15:44 +0200 Subject: [PATCH 2/2] [nvim] Moved lualine config to actual Lua file --- nvim/plugin/{lualine.vim => lualine.lua} | 3 --- 1 file changed, 3 deletions(-) rename nvim/plugin/{lualine.vim => lualine.lua} (97%) diff --git a/nvim/plugin/lualine.vim b/nvim/plugin/lualine.lua similarity index 97% rename from nvim/plugin/lualine.vim rename to nvim/plugin/lualine.lua index c65966e..15d7588 100644 --- a/nvim/plugin/lualine.vim +++ b/nvim/plugin/lualine.lua @@ -1,4 +1,3 @@ -lua << EOF local dotfiles_gruv = require'lualine.themes.gruvbox' local colors = vim.g.dotfiles_colorscheme_base16_colors @@ -25,5 +24,3 @@ require('lualine').setup{ theme = dotfiles_gruv } } - -EOF