From de86e51df97bd54935c9a40a24182df0f3597046 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 9 Mar 2025 18:31:55 +0100 Subject: [PATCH] updated neovim state --- states/neovim/templates/init.lua.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/states/neovim/templates/init.lua.j2 b/states/neovim/templates/init.lua.j2 index 45ff7d6..7d0eac2 100644 --- a/states/neovim/templates/init.lua.j2 +++ b/states/neovim/templates/init.lua.j2 @@ -9,8 +9,8 @@ vim.cmd.syntax('on') {%- endif %} {% macro cfg(command, settings) -%} -{% set t = 'g' if command = "globals" %} -{% set t = 'o' if command = "options" %} +{% if command == "globals" %}{% set t = "g" %}{% end %} +{% if command == "options" %}{% set t = "o" %}{% end %} {% for k, v in settings.items() %} vim.{{ t }}["{{ v.name }}"]{% if v.value is defined %}={% if v.value.integer() or v.value.boolean() %}{{ v.value }}{% else %}"{{ v.value }}"{% endif %} {%- endfor %}