diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2022-07-17 12:07:33 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2022-07-17 12:07:33 -0500 |
commit | d2ef027bb97d730718ac7763a91f5f7795bd8c39 (patch) | |
tree | 12923df7457f349e2dd65f05e3d958243de65814 | |
parent | 102c60f34361a2facb6310eae2e8dc0da8a1f0cd (diff) |
nvim: complete function parameters with tsserver lsp
-rw-r--r-- | nvim/.config/nvim/lua/lsp_config.lua | 12 |
1 files changed, 9 insertions, 3 deletions
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<cr>") on_attach(client, bufnr) - end -} + end, + + settings = { + completions = { + completeFunctionCalls = true, + }, + }, +}) null_ls.setup({ sources = { |