Skip to content

Commit 6df2354

Browse files
committed
docs(settings): suppress missing-fields on the partial palette override
palette_overwrite is a PARTIAL override merged via tbl_extend(force), but the palette class declares every field required, so the corrected @type made lua_ls flag the empty default with missing-fields. Keep the class annotation (it drives the advertised key completion) and disable that one diagnostic on the assignment; verified with lua-language-server --check that the suppression line must sit directly above the assignment.
1 parent e92954c commit 6df2354

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/core/settings.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ settings["disabled_plugins"] = {}
5858
-- Parameters will auto-complete as you type.
5959
-- Example: { sky = "#04A5E5" }
6060
---@type palette
61+
---@diagnostic disable-next-line: missing-fields
6162
settings["palette_overwrite"] = {}
6263

6364
-- Set the colorscheme here.

0 commit comments

Comments
 (0)