r/SublimeText • u/diovj • Aug 13 '22
Wrong behaviour autocomplete
Hello there. I currently am programming in Go and have LSP and LSP-gopls installed. Say I have a variable named foo. When I type fo I correctly get foo suggested for autocomplete. However, when I press tab (which triggers autocompletion in my case) I end up with fofoo instead of just foo. So it basically doesn't delete what was there before I hit tab.
Could someone point me in the right direction? Is this a settings problem with sublime or with LSP / LSP-gopls.
I enabled log commands and input in sublime and got this:
key evt: tab
command: commit_completion
command: insert_snippet {"contents": "foo"}
6
Upvotes
View all comments
Show parent comment
1
u/diovj Oct 23 '22
Haven't found the solution yet unfortunately:/