A modularised version of this reddit post by u/ddmenddes_ - all credit goes to the original author!
{
"roobert/f-string-toggle.nvim",
config = function()
require("f-string-toggle").setup({
key_binding = "<leader>f",
key_binding_desc = "Toggle f-string"
})
end,
}
Within a string press leader-f to toggle if it's an f-string or not.