Giter Club home page Giter Club logo

Comments (5)

VonHeikemen avatar VonHeikemen commented on September 21, 2024

There is a couple of things you can check.

Use the command :LspInfo in a lua file, make sure it says lua_ls is attached to the buffer.

Another thing you can do is this: open a lua file, enter insert mode, then use the command :CmpStatus. This should show nvim_lsp:lua_ls as a "ready source".

from lsp-zero.nvim.

patri9ck avatar patri9ck commented on September 21, 2024

:LspInfo is indeed only showing copilot, not mentioning lua_ls.

:CmpStatus displays:

# ready source names
- copilot

# unknown source names
- nvim_lsp

Mason on the other hand tells that lua-language server lua_ls is installed.

from lsp-zero.nvim.

patri9ck avatar patri9ck commented on September 21, 2024

I can get it to work when running:

lsp_zero.preset("recommended")
lsp_zero.setup()

But I guess that is not how it is supposed to work.

from lsp-zero.nvim.

VonHeikemen avatar VonHeikemen commented on September 21, 2024

Not really. .preset() and .setup() don't do anything in the current version of lsp-zero, which is v3.x.

If you do :help lsp-zero-version what do you get?

from lsp-zero.nvim.

patri9ck avatar patri9ck commented on September 21, 2024

Yep, I somehow installed v1.x, not sure how. Updated it and it works, thank you!

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.