Yet Another Word Based Suggestions extension for vscode

TLDR: https://github.com/tuan/yaws

So I’ve been using Vscode’s Neovim extension for a while. This extension is, IMO, integrated better with VIM (or NeoVim to be exact) that the other VscodeVim extension. But lately, the neovim extension has been having problem with buffer synchronization, i.e. the vscode’s buffer and neovim’s buffer get out of sync. I’m not sure what the root cause is. It’s probably caused by conflicts or race conditions among multiple extensions that all try to update text editors at the same time, e.g. linters, formatters, and neovim. I however cannot reliably reproduce the issue.

I gave up and went back to the vscodevim extension, which had been stable for at least 2,3 years for me before I switched to neovim extension. The vscodevim extension includes lots of plugins out of the box, e.g. surround, target, sneak, etc. But one thing that I really miss is the ability to auto-complete a word with or .

I’ve tried vscode’s native keyword suggestsion with allDocuments settings, but that won’t work reliably across file types. It appears that like language specific extensions often override the settings to turn off word based suggestions.

There’s couple of other extension that add word based suggestions, but they just don’t work exactly the way I would like. One just auto-completes word in the same document. The other puts everything in the auto-suggestions box with other LSP-based suggestions. I just want something simple like vim’s .

So I ended up creating https://github.com/tuan/yaws. Using this extension + vscodevim cover most of what I need, I’m happy now!