From 9ca7b6b71a1e98ff6a76270d165fc8f07763a0c3 Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Tue, 28 Sep 2021 01:12:03 +0200 Subject: fix(ui): s/format_entry/format_item to match docs (#15819) Follow up to https://github.com/neovim/neovim/pull/15771 --- runtime/lua/vim/lsp/handlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/lsp') diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index 538bd2605b..def83a7320 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -149,7 +149,7 @@ M['textDocument/codeAction'] = function(_, result, ctx) vim.ui.select(result, { prompt = 'Code actions:', - format_entry = function(action) + format_item = function(action) local title = action.title:gsub('\r\n', '\\r\\n') return title:gsub('\n', '\\n') end, -- cgit