From d3324aafa359621945b584d38312ebd80e8761e7 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 2 Mar 2026 23:44:36 -0500 Subject: [PATCH] fix(config): propagate template through platform overrides Problem: CpPlatformOverrides lacked a template field and merge_lang() never copied ov.template into the effective language config, so per-platform template overrides were silently dropped. Solution: add template? to CpPlatformOverrides and forward it in merge_lang(), matching how extension is handled. --- lua/cp/config.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/cp/config.lua b/lua/cp/config.lua index 4304a31..fcd1e96 100644 --- a/lua/cp/config.lua +++ b/lua/cp/config.lua @@ -12,6 +12,7 @@ ---@class CpPlatformOverrides ---@field extension? string ---@field commands? CpLangCommands +---@field template? string ---@class CpPlatform ---@field enabled_languages string[] @@ -259,6 +260,9 @@ local function merge_lang(base, ov) if ov.commands then out.commands = vim.tbl_deep_extend('force', out.commands or {}, ov.commands or {}) end + if ov.template then + out.template = ov.template + end return out end