Vim-go: Feature Request: Add option to globally disable gopls

Created on 10 May 2019  路  4Comments  路  Source: fatih/vim-go

This is useful for users who already have a language client set up to interact with gopls. vim-go is still useful for many of its other great features, so this would allow users to not have two instances of gopls consuming resources.

Most helpful comment

in certain cases, the latest version of gopls (v0.1.3) can eat up a lot of CPU on OSX. It's not uncommon to work on several go codebases at a time in vim. When each vim session starts its own gopls (started by vim-go), you're going to start burning a LOT of CPU.

Here's an example where I have 10 vim sessions open and 10 corresponding gopls processes:

Screen Shot 2019-08-22 at 11 15 29 AM

All 4 comments

gopls is going to be necessary for many vim-go features; it's used for more than just completion; I don't foresee us adding a way to completely disable it.

So is there a way to disable vim-go's autocompletion feature?

So is there a way to disable vim-go's autocompletion feature?

This should work. Sorry for bothering:

let g:go_code_completion_enabled = 0

in certain cases, the latest version of gopls (v0.1.3) can eat up a lot of CPU on OSX. It's not uncommon to work on several go codebases at a time in vim. When each vim session starts its own gopls (started by vim-go), you're going to start burning a LOT of CPU.

Here's an example where I have 10 vim sessions open and 10 corresponding gopls processes:

Screen Shot 2019-08-22 at 11 15 29 AM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SirmaXX picture SirmaXX  路  3Comments

korjavin picture korjavin  路  4Comments

svanharmelen picture svanharmelen  路  3Comments

Michael-F-Ellis picture Michael-F-Ellis  路  3Comments

cassiobotaro picture cassiobotaro  路  3Comments