From 56192022b25bf8e71e84e80c6a0936efd88c2f2b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 7 Dec 2019 22:10:33 -0800 Subject: remove Vimscript wrapper nvim_lsp#setup() Lua is easy to use from Vimscript, there is no reason to have multiple ways to work with nvim-lsp. - massively clarifies the "story" that users need to comprehend - reduces surface area, maintenance, tests - avoids constant "Vim or Lua" dance in the documentation - simplifies discussions, tutorials, etc. - avoids confusing situation for users that start with Vimscript but later need Lua-only features --- scripts/docgen.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/docgen.lua') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 6e2261d1..02fdd837 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -68,8 +68,7 @@ local lsp_section_template = [[ {{preamble}} ```lua -nvim_lsp.{{template_name}}.setup({config}) -nvim_lsp#setup("{{template_name}}", {config}) +require'nvim_lsp'.{{template_name}}.setup{} {{body}} ``` @@ -124,7 +123,7 @@ local function make_lsp_sections() end; function() if template_object.install then - return string.format("Can be installed in neovim with `:LspInstall %s`", template_name) + return string.format("Can be installed in Nvim with `:LspInstall %s`", template_name) end end; function() -- cgit v1.2.3-70-g09d2