Skip to content

autocompletion with love2d engine #516

@deb75

Description

@deb75

Hello,

I build a game with the love2d engine. The game is written in lua so I tried to use emacs lsp-lua
with this lua language server.

Here is an example of a "hello world" game :

local love = require "love"

function love.draw()
   love.graphics.print("Hello World", 400, 300)
end

This "game" is run with the love engine : love.exe directory\where\is\the\file

The "require" line is not mandatory for the game to start, I put it because otherwise the lua language server
considers "love" as undefined. When I put it, I assume the lua language server picks up the "love.dll" which
is in the same directory as "love.exe".

However, autocompletion does not seem to work as for regular lua package. I noticed that I am only
proposed the "love" fields and functions which are already used in the script.

How can I improve this ?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions