75 lines
1.6 KiB
Django/Jinja
75 lines
1.6 KiB
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
|
|
|
|
" Language Server Client
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('nvim_lspconfig') }}
|
|
{{ use_plugin('lightbulb') }}
|
|
{{ use_plugin('lspkind') }}
|
|
{{ use_plugin('lsp_signature') }}
|
|
{% else %}
|
|
{{ use_plugin('vim_lsp') }}
|
|
{% endif %}
|
|
|
|
" Treesitter
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('treesitter') }}
|
|
{{ use_plugin('ts-rainbow') }}
|
|
{# TODO
|
|
{{ use_plugin('indent-blankline') }}
|
|
#}
|
|
{% endif %}
|
|
|
|
" Snippets
|
|
{{ use_plugin('vsnip') }}
|
|
|
|
" Auto-completion
|
|
{% if variant == 'nvim' %}
|
|
{{ use_plugin('nvim_compe') }}
|
|
{% else %}
|
|
{{ use_plugin('deoplete') }}
|
|
{{ use_plugin('supertab') }}
|
|
{% endif %}
|
|
|
|
" 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 %}
|