Enable schema selection in all filetypes

This commit is contained in:
2026-02-20 02:01:38 +01:00
parent 5c7052140a
commit 12a16cf7f4

View File

@@ -14,10 +14,14 @@ return {
{
"<leader>ys",
function()
require("schema-companion").select_schema()
local schemas = require("schema-companion").get_matching_schemas()
if schemas == nil or #schemas == 0 or (#schemas == 1 and schemas[1].name == "none") then
print("No matching schemas")
else
require("schema-companion").select_matching_schema()
end
end,
desc = "Yaml schema",
ft = "yaml",
desc = "Select schema",
},
},
--- @module "schema-companion"