diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..ab861a3965
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+dist/languages/* linguist-vendored
+dist/qt_themes/* linguist-vendored
+externals/* linguist-vendored
+*.h linguist-language=cpp