Giter Club home page Giter Club logo

Comments (5)

VonHeikemen avatar VonHeikemen commented on June 20, 2024

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.

TheFloatingBrain avatar TheFloatingBrain commented on June 20, 2024

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.

VonHeikemen avatar VonHeikemen commented on June 20, 2024

Does autocomplete work with any other language server?

from lsp-zero.nvim.

TheFloatingBrain avatar TheFloatingBrain commented on June 20, 2024

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.

VonHeikemen avatar VonHeikemen commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.