45 lines
1,001 B
Django/Jinja
45 lines
1,001 B
Django/Jinja
{% macro add_source(link, extra={}) -%}
|
|
{% set plugins.sources = plugins.sources + [(link, extra)] %}
|
|
{%- endmacro -%}
|
|
{% macro use_plugin(name) -%}
|
|
" START PLUGIN CONFIG {{ name }}
|
|
{% include 'plugins/' + name + '.j2' +%}
|
|
" END PLUGIN CONFIG {{ name }}
|
|
{%- endmacro -%}
|
|
|
|
" Visuals
|
|
{{ use_plugin('devicons') }}
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('specs') }}
|
|
{% endif %}
|
|
|
|
" Theme
|
|
source ~/.config/vim/theme.vim
|
|
|
|
" Undo management
|
|
{{ use_plugin('undotree') }}
|
|
|
|
" Git helpers
|
|
{{ use_plugin('fugitive') }}
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('gitsigns') }}
|
|
{% else %}
|
|
{{ use_plugin('gitgutter') }}
|
|
{% endif %}
|
|
|
|
" Language-specific stuff
|
|
{{ use_plugin('tcomment') }}
|
|
{{ use_plugin('languagetool') }}
|
|
{{ use_plugin('pandoc') }}
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('dap') }}
|
|
{{ use_plugin('colorizer') }}
|
|
{% else %}
|
|
{% if 'c' in dev_stuffs or 'c++' in dev_stuffs %}
|
|
{{ use_plugin('vebugger') }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if 'ansible' in dev_stuffs %}
|
|
{{ use_plugin('ansible') }}
|
|
{% endif %}
|