nix: Vim: done

This commit is contained in:
Geoffrey Frogeye 2023-11-02 17:06:46 +01:00
parent 7f71eec03c
commit 942dff9d8c
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
8 changed files with 2 additions and 45 deletions

View file

@ -9,8 +9,6 @@
when: root_access
- role: dotfiles
tags: dotfiles
- role: vim
tags: vim
- role: mnussbaum.base16-builder-ansible # Required for desktop_environment
tags:
- color

View file

@ -1,9 +0,0 @@
- name: Configure vim
template:
src: init.vim.j2
dest: "{{ ansible_user_dir }}/.config/{{ variant }}/init.vim"
mode: "u=rw,g=r,o=r"
loop: "{{ vim_variants }}"
loop_control:
loop_var: variant

View file

@ -1,4 +0,0 @@
" PLUGINS CONFIGURATION
{% include 'pluginconfig.j2' %}

View file

@ -1,2 +0,0 @@
{% set plugins = namespace(sources=[]) %}
{% include 'pluginlist.j2' %}

View file

@ -1,8 +0,0 @@
" Visuals
{{ use_plugin('devicons') }}
{% if variant == 'nvim' %}
{{ use_plugin('specs') }}
{% endif %}
" Theme
source ~/.config/vim/theme.vim

View file

@ -1,5 +0,0 @@
{% if variant == 'nvim' %}
{{ add_source('kyazdani42/nvim-web-devicons') -}}
{% else %}
{{ add_source('ryanoasis/vim-devicons') -}}
{% endif %}

View file

@ -1,15 +0,0 @@
{# Flashes under the cursor when moving far #}
{{ add_source('edluffy/specs.nvim') -}}
lua << EOF
require('specs').setup{
popup = {
delay_ms = 0, -- delay before popup displays
inc_ms = 10, -- time increments used for fade/resize effects
blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend
width = 10,
winhl = "PMenu",
fader = require('specs').pulse_fader,
resizer = require('specs').shrink_resizer
},
}
EOF

View file

@ -80,6 +80,8 @@ in
specs = {
enable = true;
min_jump = 5;
fader = { builtin = "pulse_fader"; };
resizer = { builtin = "shrink_resizer"; };
};
# Tabline