use shared KTextEditor::Editor::instance()->repository() and KTextEditor::Editor::instance()->theme()