Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you automatically remove dependency error after :GoGet/:GoMod tidy #32

Open
rew1nter opened this issue Jun 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@rew1nter
Copy link

Currently, I have to restart every time after running such command, for the error to go away. Can you somehow reload the ui?

@olexsmir
Copy link
Owner

olexsmir commented Jun 12, 2023

I know about it, and I know that it is annoying.

I could implement the logic to run :LspRestart after commands such as :GoGet/:GoMod. And as I understood through fast googling gopls cannot handle it without restarting.

@olexsmir olexsmir added the bug Something isn't working label Jun 12, 2023
@k1ng440
Copy link

k1ng440 commented Oct 24, 2023

Add this to your LSP

local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
if not capabilities.workspace then
  capabilities.workspace = {}
end
capabilities.workspace.didChangeWatchedFiles = {
  dynamicRegistration = true,
}

My dotfile

Note: This feature is only available in Nvim 0.9.0 or later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants