diff options
Diffstat (limited to 'nvim/.config')
-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 = { |