aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-01-27 09:00:28 +0100
committerbfredl <bjorn.linse@gmail.com>2023-03-06 23:12:21 +0100
commit79571b92ced968ad27bee2a7515a4a04e84dbad2 (patch)
tree3e681a92b6fc113390f68ad2f39b91699e57c508 /runtime/doc
parented05d38d9fa643c7e562b754c6cfed8b9da5c4d8 (diff)
downloadrneovim-79571b92ced968ad27bee2a7515a4a04e84dbad2.tar.gz
rneovim-79571b92ced968ad27bee2a7515a4a04e84dbad2.tar.bz2
rneovim-79571b92ced968ad27bee2a7515a4a04e84dbad2.zip
feat(lua): omnifunc for builting lua interpreter
also make implicit submodules "uri" and "_inspector" work with completion this is needed for `:lua=vim.uri_<tab>` wildmenu completion to work even before uri or _inspector functions are used.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt6
-rw-r--r--runtime/doc/news.txt2
2 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 1eb5ab41e6..cb309eaf1a 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1404,6 +1404,12 @@ inspect({object}, {options}) *vim.inspect()*
https://github.com/kikito/inspect.lua
https://github.com/mpeterv/vinspect
+lua_omnifunc({find_start}, {_}) *vim.lua_omnifunc()*
+ Omnifunc for completing lua values from from the runtime lua interpreter,
+ similar to the builtin completion for the `:lua` command.
+
+ Activate using `set omnifunc=v:lua.vim.lua_omnifunc` in a lua buffer.
+
notify({msg}, {level}, {opts}) *vim.notify()*
Display a notification to the user.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 415195e27e..41b59681ae 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -189,6 +189,8 @@ The following new APIs or features were added.
disabled by default and can be enabled by setting the
`workspace.didChangeWatchedFiles.dynamicRegistration=true` capability.
+• Added an omnifunc implementation for lua, |vim.lua_omnifunc()|
+
==============================================================================
CHANGED FEATURES *news-changes*