From e8ada41b63ebd916a44240de661faa64a1d0c941 Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Thu, 26 May 2022 12:28:50 +0200 Subject: feat(lsp): turn rename filter into a predicate (#18745) Same as https://github.com/neovim/neovim/pull/18458 but for rename --- runtime/doc/lsp.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 841ed36421..41f083687d 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1271,10 +1271,10 @@ rename({new_name}, {options}) *vim.lsp.buf.rename()* prompted for a new name using |vim.ui.input()|. {options} (table|nil) additional options - • filter (function|nil): Predicate to filter - clients used for rename. Receives the - attached clients as argument and must return - a list of clients. + • filter (function|nil): Predicate used to + filter clients. Receives a client as + argument and must return a boolean. Clients + matching the predicate are included. • name (string|nil): Restrict clients used for rename to ones where client.name matches this field. -- cgit