aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskelleditorfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/haskell/haskelleditorfactory.cpp')
-rw-r--r--plugins/haskell/haskelleditorfactory.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/haskell/haskelleditorfactory.cpp b/plugins/haskell/haskelleditorfactory.cpp
index 704f7f4..220e52e 100644
--- a/plugins/haskell/haskelleditorfactory.cpp
+++ b/plugins/haskell/haskelleditorfactory.cpp
@@ -25,27 +25,28 @@
#include "haskelleditorfactory.h"
+#include "haskellcompletionassist.h"
+#include "haskellconstants.h"
+
#include <texteditor/textdocument.h>
#include <texteditor/texteditoractionhandler.h>
#include <QCoreApplication>
-const char C_HASKELLEDITOR_ID[] = "Haskell.HaskellEditor";
-
namespace Haskell {
namespace Internal {
HaskellEditorFactory::HaskellEditorFactory()
{
- setId(C_HASKELLEDITOR_ID);
+ setId(Constants::C_HASKELLEDITOR_ID);
setDisplayName(QCoreApplication::translate("OpenWith::Editors", "Haskell Editor"));
addMimeType("text/x-haskell");
setEditorActionHandlers(TextEditor::TextEditorActionHandler::UnCommentSelection);
-
- setDocumentCreator([] { return new TextEditor::TextDocument(C_HASKELLEDITOR_ID); });
+ setDocumentCreator([] { return new TextEditor::TextDocument(Constants::C_HASKELLEDITOR_ID); });
setCommentDefinition(Utils::CommentDefinition("--", "{-", "-}"));
setParenthesesMatchingEnabled(true);
setMarksVisible(true);
+ setCompletionAssistProvider(new HaskellCompletionAssistProvider);
}
} // Internal