Coder Social home page Coder Social logo

Comments (4)

wookayin avatar wookayin commented on August 14, 2024

I can't tell why this really happens, but I believe this has something to do with #158. What I found so far is neodev or lua_ls behaves differently in workspace configuration depending on which directory the language server was launched. In some dirs libraries are loaded well, in other dirs no luck.

from neodev.nvim.

Danielkonge avatar Danielkonge commented on August 14, 2024

I can't tell why this really happens, but I believe this has something to do with #158. What I found so far is neodev or lua_ls behaves differently in workspace configuration depending on which directory the language server was launched. In some dirs libraries are loaded well, in other dirs no luck.

With commit 3941036 everything works as expected, so I am pretty sure that the change in c6be05a causes problems. I haven't really looked into this though, so I am not sure what the exact problem is.

For now I am just using that commit and everything works fine (both in my after directory and my local plugin directories).

If you think this is the same issue as in #158, do you think I should just close this as a duplicate?

from neodev.nvim.

wookayin avatar wookayin commented on August 14, 2024

Hmm if it's about c6be05a, maybe it is not related to #158. But I'm not quite sure as I lack understanding what's going on here --- @folke can give us a better insight.

from neodev.nvim.

Danielkonge avatar Danielkonge commented on August 14, 2024

Adding a .luarc.json in ~/.config/nvim with

{
    "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
    "runtime.version": "LuaJIT"
}

fixed my issue with newer commits.

I will leave the issue open for now, in case anyone else runs into this problem, but the problem is solved for me now (feel free to close it).

from neodev.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.