From 4ce3c4e50273f511b0dfc8963b5395f239bc15e3 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 26 Sep 2020 15:37:26 +0100 Subject: [PATCH] VIM: Add my prefered colourscheme: gruvbox and set leaders This involved adding a submodule which contains the gruvbox plugin. Normally I have the background transparent when using vim but I am going to try without that. I have set my leader key to space and my local leader to \ which I am used to --- .gitmodules | 3 +++ nvim/.config/nvim/init.vim | 2 ++ nvim/.config/nvim/pack/bundle/opt/gruvbox | 1 + nvim/.config/nvim/plugin/plugins.vim | 3 +++ nvim/.config/nvim/plugin/settings.vim | 4 ++++ 5 files changed, 13 insertions(+) create mode 100644 nvim/.config/nvim/init.vim create mode 160000 nvim/.config/nvim/pack/bundle/opt/gruvbox create mode 100644 nvim/.config/nvim/plugin/plugins.vim create mode 100644 nvim/.config/nvim/plugin/settings.vim diff --git a/.gitmodules b/.gitmodules index c48aae76..e22a4baa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "shells/zsh/plugins/git-fuzzy"] path = shells/zsh/plugins/git-fuzzy url = https://github.com/bigH/git-fuzzy +[submodule "nvim/.config/nvim/pack/opt/gruvbox"] + path = nvim/.config/nvim/pack/bundle/opt/gruvbox + url = https://github.com/morhetz/gruvbox.git diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim new file mode 100644 index 00000000..c8c8a08a --- /dev/null +++ b/nvim/.config/nvim/init.vim @@ -0,0 +1,2 @@ +let mapleader = "\" +let maplocalleader = "\\" diff --git a/nvim/.config/nvim/pack/bundle/opt/gruvbox b/nvim/.config/nvim/pack/bundle/opt/gruvbox new file mode 160000 index 00000000..bf2885a9 --- /dev/null +++ b/nvim/.config/nvim/pack/bundle/opt/gruvbox @@ -0,0 +1 @@ +Subproject commit bf2885a95efdad7bd5e4794dd0213917770d79b7 diff --git a/nvim/.config/nvim/plugin/plugins.vim b/nvim/.config/nvim/plugin/plugins.vim new file mode 100644 index 00000000..9479271f --- /dev/null +++ b/nvim/.config/nvim/plugin/plugins.vim @@ -0,0 +1,3 @@ +if has('packages') + packadd! gruvbox +endif diff --git a/nvim/.config/nvim/plugin/settings.vim b/nvim/.config/nvim/plugin/settings.vim new file mode 100644 index 00000000..9ed4e383 --- /dev/null +++ b/nvim/.config/nvim/plugin/settings.vim @@ -0,0 +1,4 @@ +let g:gruvbox_italic=1 +set termguicolors +colorscheme gruvbox +