aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-25 12:15:55 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2020-11-25 12:15:55 +0100
commit72d29847d61358322caf3415404ca3a37c438dee (patch)
tree40e0bdd0717b73c4876a0686bd190f1c6b64fa91 /src/nvim/runtime.h
parentd285fa73da7ce2cb9abfbbb423eb8506e7202411 (diff)
downloadrneovim-72d29847d61358322caf3415404ca3a37c438dee.tar.gz
rneovim-72d29847d61358322caf3415404ca3a37c438dee.tar.bz2
rneovim-72d29847d61358322caf3415404ca3a37c438dee.zip
runtime: extract 'runtimepath' and 'packpath' logic to its own file
No code changes, except for added ILOG for the calculated startup path
Diffstat (limited to 'src/nvim/runtime.h')
-rw-r--r--src/nvim/runtime.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/runtime.h b/src/nvim/runtime.h
new file mode 100644
index 0000000000..b40c2b670e
--- /dev/null
+++ b/src/nvim/runtime.h
@@ -0,0 +1,18 @@
+#ifndef NVIM_RUNTIME_H
+#define NVIM_RUNTIME_H
+
+#include <stdbool.h>
+
+#include "nvim/ex_docmd.h"
+
+typedef void (*DoInRuntimepathCB)(char_u *, void *);
+
+// last argument for do_source()
+#define DOSO_NONE 0
+#define DOSO_VIMRC 1 // loading vimrc file
+
+
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "runtime.h.generated.h"
+#endif
+#endif // NVIM_RUNTIME_H