Giter Site home page Giter Site logo

Comments (5)

Blayung avatar Blayung commented on June 2, 2024 1

Okay, I'm just dumb, the problem was that I didn't pass an empty table to lspconfig.rust_analyzer.setup().

I still do not know what did you mean here though.

from nvim-lspconfig.

glepnir avatar glepnir commented on June 2, 2024

init is lspconfig iniit .not lazy init

from nvim-lspconfig.

Blayung avatar Blayung commented on June 2, 2024

init is lspconfig iniit .not lazy init

I'm sorry, but I'm not sure I understand.

from nvim-lspconfig.

andradei avatar andradei commented on June 2, 2024

@Blayung exactly my issue too. Thank you for catching that. The documentation shows
require("lspconfig")[server_name].setup {}
and I, not understanding the lua syntax, did
require("lspconfig")[server_name].setup() which means I'm calling setup with the 1st parameter being nil when it should be{} so, if you want to keep the parentheses:
require("lspconfig")[server_name].setup({}) is what you want.

from nvim-lspconfig.

Blayung avatar Blayung commented on June 2, 2024

@andradei Yeah, I also have close to zero experience with lua, so I thought that I'll just prettify it and it stopped working. Didn't use lsp for a few days because of it :D

The formatting in the nvim lsp docs is terrible, i have no idea how can they use such syntax.

from nvim-lspconfig.

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.