mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
7c94bcd2d7
Problem: Nvim has Lua but the "nvim" CLI can't easily be used to execute Lua scripts, especially scripts that take arguments or produce output. Solution: - support "nvim -l [args...]" for running scripts. closes #15749 - exit without +q - remove lua2dox_filter - remove Doxyfile. This wasn't used anyway, because the doxygen config is inlined in gen_vimdoc.py (`Doxyfile` variable). - use "nvim -l" in docs-gen CI job Examples: $ nvim -l scripts/lua2dox.lua --help Lua2DoX (0.2 20130128) ... $ echo "print(vim.inspect(_G.arg))" | nvim -l - --arg1 --arg2 $ echo 'print(vim.inspect(vim.api.nvim_buf_get_text(1,0,0,-1,-1,{})))' | nvim +"put ='text'" -l - TODO? -e executes Lua code -l loads a module -i enters REPL _after running the other arguments_. |
||
---|---|---|
.. | ||
autoload | ||
bin | ||
lua | ||
middle | ||
nvim | ||
pack/foo | ||
start/nvim-leftpad | ||
wildpum | ||
api_level_0.mpack | ||
api_level_1.mpack | ||
api_level_2.mpack | ||
api_level_3.mpack | ||
api_level_4.mpack | ||
api_level_5.mpack | ||
api_level_6.mpack | ||
api_level_7.mpack | ||
api_level_8.mpack | ||
api_level_9.mpack | ||
api_level_10.mpack | ||
bigfile_oneline.txt | ||
bigfile.txt | ||
CMakeLists.txt | ||
cmdscript.cmd | ||
fake-lsp-server.lua | ||
filename_with_unicode_ααα | ||
non_executable.txt | ||
printargs-test.c | ||
printenv-test.c | ||
shell_data.txt | ||
shell-test.c | ||
smile2.cat | ||
startup.lua | ||
streams-test.c | ||
tty-test.c |