From d2ef027bb97d730718ac7763a91f5f7795bd8c39 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 17 Jul 2022 12:07:33 -0500 Subject: nvim: complete function parameters with tsserver lsp --- nvim/.config/nvim/lua/lsp_config.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'nvim/.config') diff --git a/nvim/.config/nvim/lua/lsp_config.lua b/nvim/.config/nvim/lua/lsp_config.lua index 9453e38..1bfdf2f 100644 --- a/nvim/.config/nvim/lua/lsp_config.lua +++ b/nvim/.config/nvim/lua/lsp_config.lua @@ -69,7 +69,7 @@ for _, lsp in pairs(servers) do end -- overrides for typescript -lspconfig.tsserver.setup { +lspconfig.tsserver.setup({ on_attach = function(client, bufnr) -- disable tsserver's formatting; we'll use prettier instead client.resolved_capabilities.document_formatting = false @@ -83,8 +83,14 @@ lspconfig.tsserver.setup { buf_map(bufnr, "n", "go", ":TSLspImportAll") on_attach(client, bufnr) - end -} + end, + + settings = { + completions = { + completeFunctionCalls = true, + }, + }, +}) null_ls.setup({ sources = { -- cgit v1.2.3