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 #}