From 626842d86e4af0c85915f619031172aac3b8bf17 Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 1 Nov 2023 11:14:30 +1100 Subject: [PATCH] gopls --- lua/tests/go_gopls_spec.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/tests/go_gopls_spec.lua b/lua/tests/go_gopls_spec.lua index 740b68b..b3e7e6b 100644 --- a/lua/tests/go_gopls_spec.lua +++ b/lua/tests/go_gopls_spec.lua @@ -45,6 +45,8 @@ describe('should run gopls releated functions', function() end) it('should run import from file with gopls', function() require('plenary.reload').reload_module('go.nvim') + + require('go').setup({ goimport = 'gopls', verbose = true, log_path = '', lsp_cfg = true }) local cmd = " silent exe 'e temp.go'" vim.cmd(cmd) _GO_NVIM_CFG.log_path = '' -- enable log to console