aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordadamson <43860544+lordadamson@users.noreply.github.com>2020-04-25 21:38:23 +0200
committerGitHub <noreply@github.com>2020-04-25 21:38:23 +0200
commitc1d14ec0b01f1f86bc77aa6526997d92a77ac355 (patch)
treec3f435a9ea9cf0ec6037d44330e583a1b863cd27
parentf2d09bda1b2228a067667989246dfc5aa0b5b4d2 (diff)
downloadlite-xl-plugins-c1d14ec0b01f1f86bc77aa6526997d92a77ac355.tar.gz
lite-xl-plugins-c1d14ec0b01f1f86bc77aa6526997d92a77ac355.zip
Made sure that the cpp plugin is loaded after the c plugin
The plugin loaded last takes precedence. So that would make sure the .h files would be highlighted as C++ files.
-rw-r--r--plugins/language_cpp.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/language_cpp.lua b/plugins/language_cpp.lua
index b005b14..2b2fce5 100644
--- a/plugins/language_cpp.lua
+++ b/plugins/language_cpp.lua
@@ -1,3 +1,5 @@
+pcall(require, "plugins.language_c")
+
local syntax = require "core.syntax"
syntax.add {