Our great sponsors
-
nvim-lsp-ts-utils
Discontinued Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I imagine most LSP users use a plugin like nvim-compe to handle completion, but I love the simplicity of Vim's built-in completion options. In particular, the built-in v:lua.vim.lsp.omnifuncis (in my experience) faster and more reliable than external plugins, but one feature I missed from compe was adding missing imports on completion ().
I put together a simple implementation that works with vim.lsp.omnifunc for my TypeScript-focused plugin, nvim-lsp-ts-utils, but since it'll (theoretically) work with any language server that supports completionItem/resolve requests and returns text edits, I thought I'd share it here.
I think the best solution to get snippets working with native completion would be something like MUcomplete, which can integrate with a bunch of snippet plugins. I personally prefer to keep control over what kind of completion I see, but MUcomplete is quite good.