···11+22+33+44+local function fix_menu()
55+ local choices = {"spaces", "quotes", "both"}
66+ vim.ui.select(choices, {prompt = "fix"}, function(choice)
77+ if not choice then return end
88+ if choice == "spaces" or choice == "both" then
99+ vim.cmd("call CleanupWhitespace()")
1010+ end
1111+ if choice == "quotes" or choice == "both" then
1212+ vim.cmd([[:%s/'\([^']*\)'/"\1"/g]])
1313+ end
1414+ end)
1515+end
1616+1717+vim.keymap.set("n", "fix", fix_menu)
118219--[[
320