diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-07-19 22:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 22:27:55 +0200 |
commit | 223c355040c138fbe0a6c6de91fc4d01919d4ce2 (patch) | |
tree | 4fe717daeedd77655ca1aeff134a94836a3896f1 /src/nvim/main.c | |
parent | 1aeb945553a12ab5e88d9dca68d30a11ddc410fd (diff) | |
parent | e877eccafd2d140ffcc98db02da6dab1879a32d4 (diff) | |
download | rneovim-223c355040c138fbe0a6c6de91fc4d01919d4ce2.tar.gz rneovim-223c355040c138fbe0a6c6de91fc4d01919d4ce2.tar.bz2 rneovim-223c355040c138fbe0a6c6de91fc4d01919d4ce2.zip |
Merge pull request #15127 from bfredl/nlua_init
refactor(lua): initialize lua state at startup instead of dynamically
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 16700d20ab..909defe6d0 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -7,8 +7,6 @@ #include <string.h> #include <stdbool.h> -#include <lua.h> -#include <lauxlib.h> #include <msgpack.h> #include "nvim/ascii.h" @@ -258,6 +256,8 @@ int main(int argc, char **argv) // Check if we have an interactive window. check_and_set_isatty(¶ms); + nlua_init(); + // Process the command line arguments. File names are put in the global // argument list "global_alist". command_line_scan(¶ms); @@ -341,7 +341,6 @@ int main(int argc, char **argv) TIME_MSG("initialized screen early for UI"); } - // open terminals when opening files that start with term:// #define PROTO "term://" do_cmdline_cmd("augroup nvim_terminal"); |