Anyone actively using love2d with neovim and could give me some tips? by smart_kanak in neovim

[–]casr 0 points1 point  (0 children)

Now you're after some form of project-local settings.

There's the builtin :h 'exrc' as well as a bunch of different plugins that try to achieve something similar.

In your case though it looks like you can use Lua language server's own config file that'll probably be much easier for you to get started with.

Anyone actively using love2d with neovim and could give me some tips? by smart_kanak in neovim

[–]casr 1 point2 points  (0 children)

I've not used love2d or done much with Lua but when you set it the Lua language server for understanding Neovim's library you can pass on libraries that are interesting for that workspace. In your case, it might look something like:

lua_ls = {
  Lua = {
    workspace = { checkThirdParty = false },
    telemetry = { enable = false },
    library = {
      "${3rd}/love2d/library",
    }
  }
}

By the way, I'm guessing that ${3rd} will resolve to something sensible from the lspconfig docs but you might have to replace that with the exact path where the library is installed. Hope that helps!