diff --git a/src/plugins/copilot/copilotoptionspage.cpp b/src/plugins/copilot/copilotoptionspage.cpp index 405b15990c8..f37042b2d12 100644 --- a/src/plugins/copilot/copilotoptionspage.cpp +++ b/src/plugins/copilot/copilotoptionspage.cpp @@ -41,16 +41,15 @@ public: }); // clang-format off - helpLabel->setText(Tr::tr(R"( -The Copilot plugin requires node.js and the Copilot neovim plugin. -If you install the neovim plugin as described in the -[README.md](https://github.com/github/copilot.vim), -the plugin will find the agent.js file automatically. - -Otherwise you need to specify the path to the -[agent.js](https://github.com/github/copilot.vim/tree/release/copilot/dist) -file from the Copilot neovim plugin. - )", "Markdown text for the copilot instruction label")); + helpLabel->setText(Tr::tr( + "The Copilot plugin requires node.js and the Copilot neovim plugin. " + "If you install the neovim plugin as described in %1, " + "the plugin will find the agent.js file automatically.\n\n" + "Otherwise you need to specify the path to the %2 " + "file from the Copilot neovim plugin.", + "Markdown text for the copilot instruction label").arg( + "[README.md](https://github.com/github/copilot.vim)", + "[agent.js](https://github.com/github/copilot.vim/tree/release/copilot/dist)")); Column { authWidget, br,