neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 2a733ec6ccbc44dbc37c9cb36dc74bf9bcb8c02c
parent 9304a417af9998a8164c2b66d6033f9586d36c56
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Sun, 23 Feb 2025 08:21:24 -0800

revert "feat(ftplugin): set 'omnifunc' of Lua to 'v:lua.vim.lua_omnifunc'" #32597

This reverts commit f398e3a61abbf802b49867d2f533be1b0725c0d7.
Diffstat:
Mruntime/doc/insert.txt | 5-----
Mruntime/doc/news.txt | 3---
Mruntime/ftplugin/lua.lua | 5+----
3 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt @@ -1502,11 +1502,6 @@ both major engines implemented element, even if this is not in standards it will be suggested. All other elements are not placed in suggestion list. -LUA *ft-lua-omni* - -Lua |ftplugin| sets 'omnifunc' to |vim.lua_omnifunc()|. - - PHP *ft-php-omni* Completion of PHP code requires a tags file for completion of data from diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt @@ -239,9 +239,6 @@ DEFAULTS • |[b|, |]b|, |[B|, |]B| navigate through the |buffer-list| • |[<Space>|, |]<Space>| add an empty line above and below the cursor -• Options: - • Lua |ftplugin| sets |'omnifunc'| to `"v:lua.vim.lua_omnifunc"`. - • Snippet: • `<Tab>` in Insert and Select mode maps to `vim.snippet.jump({ direction = 1 })` when a snippet is active and jumpable forwards. diff --git a/runtime/ftplugin/lua.lua b/runtime/ftplugin/lua.lua @@ -1,7 +1,4 @@ -- use treesitter over syntax vim.treesitter.start() -vim.bo.omnifunc = 'v:lua.vim.lua_omnifunc' - -vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') - .. '\n call v:lua.vim.treesitter.stop() \n setl omnifunc<' +vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n call v:lua.vim.treesitter.stop()'