From 00c62302e8784414ac7b292033549e6c04e79d0f Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 29 Aug 2023 18:00:51 +0200 Subject: [PATCH] updated neovim state --- states/neovim/defaults.yaml | 1 - states/neovim/plugins.sls | 8 ++++---- states/neovim/themes.sls | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/states/neovim/defaults.yaml b/states/neovim/defaults.yaml index 8550fd4..2168f55 100644 --- a/states/neovim/defaults.yaml +++ b/states/neovim/defaults.yaml @@ -87,6 +87,5 @@ neovim: use_syntax: true themes: monokai: - name: monokai url: https://raw.githubusercontent.com/sickill/vim-monokai/master/colors/monokai.vim plugins: {} diff --git a/states/neovim/plugins.sls b/states/neovim/plugins.sls index 3dd3f1c..d3b9856 100644 --- a/states/neovim/plugins.sls +++ b/states/neovim/plugins.sls @@ -12,11 +12,11 @@ neovim-plugin-dirs: - name: {{ neovim.plugins_dir }} - makedirs: true -{%- for key, value in neovim.plugins.items() %} -neovim-plugin-{{ value.name }}: +{%- for name, value in neovim.plugins.items() %} +neovim-plugin-{{ name }}: git.latest: - - name: {{ value.repo }} - - target: {{ neovim.plugins_dir }}/{{ value.name }} + - name: {{ value.url }} + - target: {{ neovim.plugins_dir }}/{{ name }} - rev: {{ value.rev|default('HEAD') }} - force_reset: true - submodules: true diff --git a/states/neovim/themes.sls b/states/neovim/themes.sls index b4de4ee..39f3b79 100644 --- a/states/neovim/themes.sls +++ b/states/neovim/themes.sls @@ -1,9 +1,9 @@ --- {%- from "neovim/map.jinja" import neovim with context %} -{%- for key, value in neovim.themes.items() %} -neovim-{{ value.name }}-theme: +{%- for name, value in neovim.themes.items() %} +neovim-{{ name }}-theme: file.managed: - - name: {{ neovim.colors_dir }}/{{ value.name }}.vim + - name: {{ neovim.colors_dir }}/{{ name }}.vim - source: {{ value.url }} - skip_verify: true - user: root @@ -12,4 +12,4 @@ neovim-{{ value.name }}-theme: - require: - pkg: neovim-pkg - file: neovim-colors-directory -{%- endfor %} \ No newline at end of file +{%- endfor %}