From f940e7a5b9919a0494fbd07e39856bd01dfbf840 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Thu, 18 Nov 2021 09:26:26 -0800 Subject: feat(lsp): add tagfunc (#16103) --- runtime/lua/vim/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/lua/vim/lsp.lua') diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 0fc0a7a7aa..6254bb542a 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1587,6 +1587,13 @@ function lsp.formatexpr(opts) return 0 end +-- Provides an interface between the built-in client and `tagfunc` +-- +-- Used via `set tagfunc=v:lua.vim.lsp.tagfunc` +function lsp.tagfunc(...) + return require('vim.lsp.tagfunc')(...) +end + ---Checks whether a client is stopped. --- ---@param client_id (Number) -- cgit