2021-07-02 22:57:07 +02:00
|
|
|
{% macro add_source(link, extra={}) -%}
|
|
|
|
{% set plugins.sources = plugins.sources + [(link, extra)] %}
|
|
|
|
{%- endmacro -%}
|
|
|
|
{% macro use_plugin(name) -%}
|
2021-07-03 14:13:25 +02:00
|
|
|
" START PLUGIN CONFIG {{ name }}
|
|
|
|
{% include 'plugins/' + name + '.j2' +%}
|
|
|
|
" END PLUGIN CONFIG {{ name }}
|
2021-07-02 22:57:07 +02:00
|
|
|
{%- endmacro -%}
|
|
|
|
|
2021-07-04 09:54:33 +02:00
|
|
|
" Visuals
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('base16') }}
|
2021-07-04 09:52:16 +02:00
|
|
|
{{ use_plugin('devicons') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('specs') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{{ use_plugin('scrollview') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2021-07-04 22:47:10 +02:00
|
|
|
" Theme
|
|
|
|
source ~/.config/vim/theme.vim
|
|
|
|
|
|
|
|
" Status/tab lines
|
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('barbar') }}
|
|
|
|
{{ use_plugin('feline') }}
|
|
|
|
{% else %}
|
|
|
|
{{ use_plugin('airline') }}
|
|
|
|
{% endif %}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Goto utilities
|
2021-07-04 09:54:33 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('telescope') }}
|
|
|
|
{% else %}
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('fzf') }}
|
2021-07-04 09:54:33 +02:00
|
|
|
{% endif %}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Search/replace
|
|
|
|
{{ use_plugin('abolish') }}
|
|
|
|
|
|
|
|
" Sourounding pairs
|
|
|
|
{{ use_plugin('surround') }}
|
|
|
|
{{ use_plugin('targets') }}
|
|
|
|
|
|
|
|
" f/F mode
|
|
|
|
{{ use_plugin('shot_f') }}
|
|
|
|
{{ use_plugin('quick_scope') }}
|
|
|
|
|
2021-07-04 22:47:10 +02:00
|
|
|
" Registers
|
|
|
|
{{ use_plugin('registers') }}
|
|
|
|
|
|
|
|
|
|
|
|
" Tags/Symbols
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('gutentags') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('symbols-outline') }}
|
|
|
|
{% else %}
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('vista') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{% endif %}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Language Server Client
|
2021-07-04 09:54:33 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('nvim_lspconfig') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{{ use_plugin('lightbulb') }}
|
|
|
|
{{ use_plugin('lspkind') }}
|
|
|
|
{{ use_plugin('lsp_signature') }}
|
2021-07-04 09:54:33 +02:00
|
|
|
{% else %}
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('vim_lsp') }}
|
2021-07-04 09:54:33 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
" Treesitter
|
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('treesitter') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{{ use_plugin('ts-rainbow') }}
|
2021-07-04 09:54:33 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
" Snippets
|
|
|
|
{{ use_plugin('vsnip') }}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Auto-completion
|
2021-07-04 09:54:33 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('nvim_compe') }}
|
|
|
|
{% else %}
|
2021-07-02 22:57:07 +02:00
|
|
|
{{ use_plugin('deoplete') }}
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('supertab') }}
|
2021-07-04 09:54:33 +02:00
|
|
|
{% endif %}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Undo management
|
|
|
|
{{ use_plugin('undotree') }}
|
|
|
|
|
|
|
|
" Git helpers
|
|
|
|
{{ use_plugin('fugitive') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('gitsigns') }}
|
|
|
|
{% else %}
|
2021-07-03 14:13:25 +02:00
|
|
|
{{ use_plugin('gitgutter') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% endif %}
|
2021-07-03 14:13:25 +02:00
|
|
|
|
|
|
|
" Language-specific stuff
|
|
|
|
{{ use_plugin('tcomment') }}
|
|
|
|
{{ use_plugin('languagetool') }}
|
|
|
|
{{ use_plugin('pandoc') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% if variant == 'nvim' %}
|
|
|
|
{{ use_plugin('dap') }}
|
2021-07-04 22:47:10 +02:00
|
|
|
{{ use_plugin('colorizer') }}
|
2021-07-04 12:41:34 +02:00
|
|
|
{% else %}
|
2021-07-03 14:13:25 +02:00
|
|
|
{% if 'c' in dev_stuffs or 'c++' in dev_stuffs %}
|
|
|
|
{{ use_plugin('vebugger') }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'ansible' in dev_stuffs %}
|
|
|
|
{{ use_plugin('ansible') }}
|
|
|
|
{% endif %}
|