From 51fa9fa0b0dbd5381487be7df1a3f5d16b3586e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 4 Jul 2021 15:52:50 +0200 Subject: [PATCH] Removed reload plugin since it's broken --- config/automatrop/roles/vim/templates/editor.j2 | 2 ++ config/automatrop/roles/vim/templates/pluginlist.j2 | 5 ----- config/automatrop/roles/vim/templates/plugins/reload.j2 | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/automatrop/roles/vim/templates/editor.j2 b/config/automatrop/roles/vim/templates/editor.j2 index 9f42efb..0b77445 100644 --- a/config/automatrop/roles/vim/templates/editor.j2 +++ b/config/automatrop/roles/vim/templates/editor.j2 @@ -97,3 +97,5 @@ nnoremap s :%s/\<\>/ " add extensions to syntax au BufNewFile,BufRead *.jinja set filetype=jinja2 + +command Reload source $MYVIMRC diff --git a/config/automatrop/roles/vim/templates/pluginlist.j2 b/config/automatrop/roles/vim/templates/pluginlist.j2 index ffdc0f9..b0a7e5c 100644 --- a/config/automatrop/roles/vim/templates/pluginlist.j2 +++ b/config/automatrop/roles/vim/templates/pluginlist.j2 @@ -7,11 +7,6 @@ " END PLUGIN CONFIG {{ name }} {%- endmacro -%} -" Config reload -{% if variant == 'nvim' %} -{{ use_plugin('reload') }} -{% endif %} - " Visuals {{ use_plugin('base16') }} {{ use_plugin('airline') }} diff --git a/config/automatrop/roles/vim/templates/plugins/reload.j2 b/config/automatrop/roles/vim/templates/plugins/reload.j2 index a3b7806..483001f 100644 --- a/config/automatrop/roles/vim/templates/plugins/reload.j2 +++ b/config/automatrop/roles/vim/templates/plugins/reload.j2 @@ -1,2 +1,4 @@ +{# Live reload #} {{ add_source('famiu/nvim-reload') -}} {{ add_source('nvim-lua/plenary.nvim') -}} +{# Not used, this breaks color, and source $MYVIMRC is all that we need to reload colorscheme #}