Help with nvim-compe completion with nvim-lspconfig and ccls

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-config

    Discontinued nvim-configuration (by MagisterDamaskII)

  • I am trying to create a new nvim config and move from coc.nvim to native LSP but there are a few problems with my auto completion. I am sure these can be resolved relatively quickly but unfortunately I dont have any skill in writing or reading lua or vimscript. All the important files (init.vim, ccls.lua, compe-config.lua, lsp-config.lua) are here. The first problem is that even though I set single_file_support = true in my ccls.lua, the autocompletion only works when for example a compile_commands.json is present (can be empty too). The other problem which is probably just bad configuration is that is used to cycle through the autocomplete recommendations but whenever there are none I cant use as normal key just to write a tab.

  • nvim-lspconfig

    Quickstart configs for Nvim LSP

  • I cant help you for ccls, but you should use nvim-cmp (the successor of nvim-compe!). You can see how to config nvim-cmp with built-in lsp client via nvim-lspconfig wiki (https://github.com/neovim/nvim-lspconfig/wiki/Autocompletion). Also you can see how to config for TAB from here https://github.com/hrsh7th/nvim-cmp/wiki/Example-mappings#super-tab-like-mapping)

  • 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
  • nix-home

  • I do some C and C++ in neovim, but I use clangd instead of ccls. My config.

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