dotfiles/config/automatrop/roles/vim/templates/pluginlist.j2

91 lines
1.8 KiB
Plaintext
Raw Normal View History

{% macro add_source(link, extra={}) -%}
{% set plugins.sources = plugins.sources + [(link, extra)] %}
{%- endmacro -%}
{% macro use_plugin(name) -%}
2021-07-03 12:13:25 +00:00
" START PLUGIN CONFIG {{ name }}
{% include 'plugins/' + name + '.j2' +%}
" END PLUGIN CONFIG {{ name }}
{%- endmacro -%}
2021-07-04 07:54:33 +00:00
" Visuals
2021-07-03 12:13:25 +00:00
{{ use_plugin('base16') }}
{{ use_plugin('airline') }}
2021-07-04 07:52:16 +00:00
{{ use_plugin('devicons') }}
{% if variant == 'nvim' %}
{{ use_plugin('lightbulb') }}
{{ use_plugin('ts-rainbow') }}
{{ use_plugin('specs') }}
{% endif %}
2021-07-03 12:13:25 +00:00
" Goto utilities
2021-07-04 07:54:33 +00:00
{% if variant == 'nvim' %}
{{ use_plugin('telescope') }}
{% else %}
2021-07-03 12:13:25 +00:00
{{ use_plugin('fzf') }}
2021-07-04 07:54:33 +00:00
{% endif %}
2021-07-03 12:13:25 +00: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') }}
" Tags
{{ use_plugin('gutentags') }}
{{ use_plugin('vista') }}
" Language Server Client
2021-07-04 07:54:33 +00:00
{% if variant == 'nvim' %}
{{ use_plugin('nvim_lspconfig') }}
{% else %}
2021-07-03 12:13:25 +00:00
{{ use_plugin('vim_lsp') }}
2021-07-04 07:54:33 +00:00
{% endif %}
" Treesitter
{% if variant == 'nvim' %}
{{ use_plugin('treesitter') }}
{% endif %}
" Snippets
{{ use_plugin('vsnip') }}
2021-07-03 12:13:25 +00:00
" Auto-completion
2021-07-04 07:54:33 +00:00
{% if variant == 'nvim' %}
{{ use_plugin('nvim_compe') }}
{% else %}
{{ use_plugin('deoplete') }}
2021-07-03 12:13:25 +00:00
{{ use_plugin('supertab') }}
2021-07-04 07:54:33 +00:00
{% endif %}
2021-07-03 12:13:25 +00:00
" Undo management
{{ use_plugin('undotree') }}
" Git helpers
{{ use_plugin('fugitive') }}
{% if variant == 'nvim' %}
{{ use_plugin('gitsigns') }}
{% else %}
2021-07-03 12:13:25 +00:00
{{ use_plugin('gitgutter') }}
{% endif %}
2021-07-03 12:13:25 +00:00
" Language-specific stuff
{{ use_plugin('tcomment') }}
{{ use_plugin('languagetool') }}
{{ use_plugin('pandoc') }}
{% if variant == 'nvim' %}
{{ use_plugin('dap') }}
{% else %}
2021-07-03 12:13:25 +00: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 %}