Comments (5)
If is not avaible in mason.nvim then you will have to install it manually. Then just use lspconfig
like they show on the wiki.
from lsp-zero.nvim.
I tried a slight variation on the default config:
local lspconfig = require('lspconfig')
lspconfig.ccls.setup {
init_options = {
compilationDatabaseDirectory = "build";
cache = {
directory = ".ccls-cache";
};
}
}
Seems to work, but no auto complete, it is saying that it cant find the nvim-cmp module.
from lsp-zero.nvim.
Does autocomplete work with any other language server?
from lsp-zero.nvim.
Yes, I got it to work with python-language-server with the config I was trying commented out. If I uncomment it however, it does tell me it cant find cmp or nvim-cmp if I try to use the code at the top of this. Not sure if I need it though, if I delete that code from init.lua autocomplete for python works fine. However I am not sure if I need this more advanced completion for CCLS
from lsp-zero.nvim.
So it seems you don't have nvim-cmp installed, or is not loading correctly. So whatever completions you do have working they are not configured by lsp-zero.
If you don't need nvim-cmp, you can delete the code that uses the cmp
module from your config.
If you want lsp-zero to handle the autocomplete configuration, make sure you have all these plugins installed:
from lsp-zero.nvim.
Related Issues (20)
- [feature] helper functions for efm language server
- grey foldcolumn when after installing lsp-zero.nvim HOT 2
- Client 1 quit with exit code 1 and signal 15 HOT 4
- What if I don't find my LSP in MASON HOT 3
- Bug: Formatting resets some content of a file
- Cannot add laravel-dev-tools HOT 2
- Highlight symbol under cursor HOT 3
- ThePrimeagen Config doesn't ensure lua lsp install. HOT 6
- add file paths to tutorial examples HOT 9
- Diagnostic signs in Neovim v0.10.0 and `vim.diagnostic.config()` HOT 2
- suggestions overlap with each other HOT 3
- Add 'linewidth' parameter to 'formatting_options' HOT 2
- Bug: use_fallback = true causing single-repeat issues HOT 3
- autocomplete on tab HOT 1
- How to integrate conform.nvim with lsp-zero.nvim HOT 2
- Need help to load friendly-snippets HOT 1
- lsp_zero.cmp_format() hides important information for rust_analyzer HOT 2
- error installing gopls(same thing happend with hls) HOT 2
- error installing hls(haskell server) HOT 1
- Allow setting max width on vim.diagnostics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-zero.nvim.