summaryrefslogtreecommitdiffstatshomepage
path: root/src/nvim/lua/executor.c
AgeCommit message (Collapse)AuthorFiles
2020-02-10eval.c: factor out eval/funcs.c #11828Jakub Łuczyński1
close #11828 ref #5081 cf. vim patch 7.4.2063
2020-02-07treesitter: add standard &rtp/parser/ search path for parsersBjörn Linse1
2020-01-01lua: metatable for empty dict valueBjörn Linse1
2019-12-25clang/'Logic error': set ret_tv if non-nullJan Edmund Lazo1
2019-12-22tree-sitter: implement query functionality and highlighting prototype ↵Björn Linse1
[skip.lint]
2019-12-02API: rename nvim_execute_lua => nvim_exec_luaJustin M. Keyes1
- We already find ourselves renaming nvim_execute_lua in tests and scripts, which suggests "exec" is the verb we actually want. - Add "exec" verb to `:help dev-api`.
2019-11-24Lua: vim.env, vim.{g,v,w,bo,wo} #11442Ashkan Kiani1
- Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo} - Redo gen_char_blob to generate multiple blobs instead of just one so that multiple Lua modules can be inlined. - Reorder vim.lua inclusion so that it can use previously defined C functions and utility functions like vim.shared and vim.inspect things. - Inline shared.lua into nvim, but also keep it available in runtime.
2019-11-16Add v:lua.func() vimL syntax for calling luaBjörn Linse1
Also simplify error messages when calling lua from vimL.
2019-11-10lua: vim.rpcrequest, vim.rpcnotify, vim.NILBjörn Linse1
2019-10-29lua/executor.c: use TRY_WRAPJustin M. Keyes1
2019-10-27lua: add vim.fn.{func} for direct access to vimL functionBjörn Linse1
compared to vim.api.|nvim_call_function|, this fixes some typing issues due to the indirect conversion via the API. float values are preserved as such (fixes #9389) as well as empty dicts/arrays. Ref https://github.com/norcalli/nvim.lua for the call syntax
2019-09-28tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests)Björn Linse1
2019-09-28tree-sitter: inspect languageBjörn Linse1
2019-09-28tree-sitter: styleBjörn Linse1
2019-09-28tree-sitter: rename tree_sitter => treesitter for consistencyBjörn Linse1
2019-09-28tree-sitter: add basic testing on ciBjörn Linse1
build tree-sitter c parser on ci for testing purposes
2019-09-28tree-sitter: support pre-registration of languagesBjörn Linse1
2019-09-28tree-sitter: objectify APIBjörn Linse1
2019-09-28tree-sitter: load parsers as .so filesBjörn Linse1
2019-09-28tree-sitter: initial tree-sitter supportBjörn Linse1
2019-08-31tui/input: defer nvim_paste properly.Björn Linse1
Otherwise cursor and redraw code for normal and insert mode will not run. The "tickle" workaround was used for this instead, and can now be removed. The builtin vim.lua got the name [string "-- Nvim-Lua stdlib: thevimmodule (:help l..."] in error messages. Fix it to something reasonable.
2019-08-09Merge pull request #10171 from blueyed/vim-8.1.1318Daniel Hahler1
vim-patch:8.1.1318: code for text changes is in a "misc" file
2019-08-08lua: minimal UTF-16 support needed for LSPBjörn Linse1
2019-08-07includesDaniel Hahler1
2019-08-05lua: add vim.in_fast_event() to check if we are in a luv callbackBjörn Linse1
2019-08-05lua: do not crash on syntax error in debug.debug()Björn Linse1
2019-08-05lua: immediate-callback safe print()Björn Linse1
2019-07-01api/lua: make nvim_execute_lua use native lua floats, not special tablesBjörn Linse1
Rationale: the purpose of nvim_execute_lua is to simply call lua code with lua values. If a lua function expects a floating point value, it should be enough to specify a float as argument to nvim_execute_lua. However, make sure to preserve the existing roundtripping behavior of API values when using `vim.api` functions. This is covered by existing lua/api_spec.lua tests.
2019-06-30make vim.loop == require'luv'Björn Linse1
This avoids initializing libluv a second time if a plugin invokes require'luv'. It is probably not an issue, but better to be safe.
2019-06-30libluv: use luv_set_callback to control callback executionBjörn Linse1
Disable the use of deferred API functions in a fast lua callback Correctly display error messages from a fast lua callback
2019-06-15api/lua: add on_detach to nvim_buf_attachBjörn Linse1
2019-06-10lua: introduce vim.loop (expose libuv event-loop) #10123George Zhao1
Co-authored-by: Andrey Popp <8mayday@gmail.com> closes #9546 closes #10084
2019-06-05lua: docs and tests for vim.scheduleBjörn Linse1
2019-06-05lua: add vim.schedule(cb)Andrey Popp1
This executes Lua callback on main loop's event queue so that nvim API is safe to call.
2019-06-04api: allow nvim_buf_attach from lua using callbacksBjörn Linse1
2019-05-26messages: use proper multiline error message for rpcrequest and API wrappersBjörn Linse1
2019-03-16Merge #9686 'win/Lua: monkey-patch os.getenv()'Justin M. Keyes1
fixes #9681
2019-03-07Fix os.getenv of lua on Windowserw71
Change to use os_getenv instead of getenv because environment variable set by uv_os_setenv can not be get with getenv.
2019-01-23cleanup: reduce some duplicate code, avoid function pointers for a conditionBjörn Linse1
Add 'multiline' flag to history for correct :messages output Use larger buffer size for multiline messages. if this turns out to not be enough, we could do size calculation like api_set_error
2019-01-22message.c: add msg_echo_attr functions, use it for lua error messagesAlexandre Dubray1
The added function behaves like the non-echo function but display message in a echo-style way (i.e. tab and newline are preserved)
2018-09-24add func_attr_printf in :MichaHoffmann1
log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
2018-01-21lua/executor: Remove all places where lightuserdata is usedZyX1
Should fix problems with luajit+arm64. Fixes #7879 Ref LuaJIT/LuaJIT#230
2017-11-06docJustin M. Keyes1
2017-10-22Merge #7165 'lua: Move stricmp to vim module'Justin M. Keyes1
2017-08-15lua/executor: Fix crash when first string contains NUL and second notZyX1
2017-08-15lua/executor: Move stricmp to vim “module” and document itZyX1
2017-08-15lua/executor: Make stricmp function work with strings with NULsZyX1
2017-08-13lua/executor: Fix crash when printing empty string (#7157)Nikolai Aleksandrovich Pavlov1
2017-06-27Merge #6789 from ZyX-I/lua-pathJustin M. Keyes1
lua: Add paths from &runtimepath to package.path and package.cpath
2017-06-03lint: fix indentation of FUNC_ATTR linesBjörn Linse1