runtime.h
Go to the documentation of this file.
1 #ifndef NVIM_RUNTIME_H
2 #define NVIM_RUNTIME_H
3 
4 #include <stdbool.h>
5 
6 #include "nvim/ex_docmd.h"
7 
8 typedef void (*DoInRuntimepathCB)(char_u *, void *);
9 
10 typedef struct {
11  char *path;
12  bool after;
15 
16 typedef kvec_t(SearchPathItem) RuntimeSearchPath;
17 typedef kvec_t(char *) CharVec;
18 
19 // last argument for do_source()
20 #define DOSO_NONE 0
21 #define DOSO_VIMRC 1 // loading vimrc file
22 
23 // Used for flags in do_in_path()
24 #define DIP_ALL 0x01 // all matches, not just the first one
25 #define DIP_DIR 0x02 // find directories instead of files
26 #define DIP_ERR 0x04 // give an error message when none found
27 #define DIP_START 0x08 // also use "start" directory in 'packpath'
28 #define DIP_OPT 0x10 // also use "opt" directory in 'packpath'
29 #define DIP_NORTP 0x20 // do not use 'runtimepath'
30 #define DIP_NOAFTER 0x40 // skip "after" directories
31 #define DIP_AFTER 0x80 // only use "after" directories
32 #define DIP_LUA 0x100 // also use ".lua" files
33 #define DIP_DIRFILE 0x200 // find both files and directories
34 
35 
36 #ifdef INCLUDE_GENERATED_DECLARATIONS
37 # include "runtime.h.generated.h"
38 #endif
39 #endif // NVIM_RUNTIME_H
TriState
TriState
Definition: types.h:29
SearchPathItem::has_lua
TriState has_lua
Definition: runtime.h:13
SearchPathItem::path
char * path
Definition: runtime.h:11
void
void(WINAPI *pClosePseudoConsole)(HPCON)
SearchPathItem
Definition: runtime.h:10
SearchPathItem::after
bool after
Definition: runtime.h:12
DoInRuntimepathCB
void(* DoInRuntimepathCB)(char_u *, void *)
Definition: runtime.h:8
char_u
unsigned char char_u
Definition: types.h:12
ex_docmd.h
kvec_t
typedef kvec_t(SearchPathItem) RuntimeSearchPath