LSP: add missing imports on complete using the built-in omnifunc

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • nvim-compe

    Discontinued Auto completion Lua plugin for nvim

  • 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 ().

  • nvim-lsp-ts-utils

    Discontinued Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.

  • 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.

  • 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.

    InfluxDB logo
  • vim-mucomplete

    Chained completion that works the way you want!

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts