Our great sponsors
-
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 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.
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)
I do some C and C++ in neovim, but I use clangd instead of ccls. My config.