Merge pull request #13834 from bfredl/omnilua

omnifunc for builtin lua
This commit is contained in:
bfredl
2023-03-07 00:28:53 +01:00
committed by GitHub
6 changed files with 79 additions and 6 deletions

View File

@@ -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.

View File

@@ -192,6 +192,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*