ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LOVELY2​D

by kevinfiol ST4

LOVE2D API support for Sublime Text 4

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 161
  • Linux 342
May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19
Windows 0 3 1 1 0 1 2 2 1 0 0 0 2 0 0 1 0 2 0 0 1 2 2 2 1 0 4 0 1 1 2 1 5 2 0 1 0 0 1 3 0 1 0 1 0 2
Mac 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 2 0 0 0 0 0 0
Linux 0 0 1 0 0 1 1 1 0 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 1 1 1 1 0 2 1 0 1 0
0246May 3Apr 30Apr 27Apr 24Apr 21Apr 18Apr 15Apr 12Apr 9Apr 6Apr 3Mar 31Mar 28Mar 25Mar 22Mar 19May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 3May 1 Linux: 1 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 1Apr 27 Linux: 1 Mac: 1 Windows: 2Apr 26 Linux: 1 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 1 Mac: 0 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 2 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 2Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 0 Mac: 0 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 1Apr 8 Linux: 1 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 4Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 2 Mac: 0 Windows: 2Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 5Mar 31 Linux: 0 Mac: 0 Windows: 2Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 1Mar 28 Linux: 1 Mac: 1 Windows: 0Mar 27 Linux: 1 Mac: 0 Windows: 0Mar 26 Linux: 1 Mac: 0 Windows: 1Mar 25 Linux: 1 Mac: 2 Windows: 3Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 2 Mac: 0 Windows: 1Mar 22 Linux: 1 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 1 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 2May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 3May 1 Linux: 1 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 1Apr 27 Linux: 1 Mac: 1 Windows: 2Apr 26 Linux: 1 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 1 Mac: 0 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 2 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 2Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 0 Mac: 0 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 1Apr 8 Linux: 1 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 4Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 2 Mac: 0 Windows: 2Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 5Mar 31 Linux: 0 Mac: 0 Windows: 2Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 1Mar 28 Linux: 1 Mac: 1 Windows: 0Mar 27 Linux: 1 Mac: 0 Windows: 0Mar 26 Linux: 1 Mac: 0 Windows: 1Mar 25 Linux: 1 Mac: 2 Windows: 3Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 2 Mac: 0 Windows: 1Mar 22 Linux: 1 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 1 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 2May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 3May 1 Linux: 1 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 1Apr 27 Linux: 1 Mac: 1 Windows: 2Apr 26 Linux: 1 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 1 Mac: 0 Windows: 2Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 2 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 2Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 0 Mac: 0 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 1Apr 8 Linux: 1 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 4Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 2 Mac: 0 Windows: 2Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 5Mar 31 Linux: 0 Mac: 0 Windows: 2Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 1Mar 28 Linux: 1 Mac: 1 Windows: 0Mar 27 Linux: 1 Mac: 0 Windows: 0Mar 26 Linux: 1 Mac: 0 Windows: 1Mar 25 Linux: 1 Mac: 2 Windows: 3Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 2 Mac: 0 Windows: 1Mar 22 Linux: 1 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 1 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 2

Readme

Source
raw.​githubusercontent.​com

LÖVELY2D

video demo

A (WIP) Sublime Text 4 plugin for LÖVE2D development that provides autocomplete and API information.

Based on LÖVE-API.

Status: LSP-lua now ships with LÖVE2D support. Unless you want to avoid LSP, I recommend that over LÖVELY2D.

Installation

Package Control

LÖVELY2D is available on Package Control.

Manually

  1. Navigate to your Packages folder (easiest way to find it is from within Sublime Text, go to Preferences > Browse Packages...).
  2. Download the latest release from the releases page.
  3. Unzip the downloaded archive. Copy the directory LOVELY2D-x.x.x into your Packages folder.

With Git

Use git clone to clone this repository into your Packages folder.

# From within your `Packages` folder
git clone https://github.com/kevinfiol/LOVELY2D.git

Usage

From within a .lua file, set the syntax to LOVELY2D. Autocomplete and hover tips should function normally.

Tip: I recommend setting "auto_complete_preserve_order": "none" in your Sublime preferences for more predictable auto-complete behavior.

Usage with Sublime LSP

Sublime LSP is an implementation of the Language Server Protocol for Sublime Text.

Note: the LSP-lua package now ships with LÖVE2D support out of the box that is more intelligent than LOVELY2D thanks to the Language Server Protocol. You may or may not want to use LOVELY2D in conjunction with Sublime LSP for this reason. Nevertheless, see below if you'd like to continue:

  1. Install Sublime LSP.
  2. Install LSP-lua
  3. Open the Command Palette, and go to LSP-lua Settings. Modify the selector and Lua.diagnostics.globals property so that LÖVELY2D Syntax files are correctly parsed and diagnostics doesn't nag you about the love global. Example:
{
    "selector": "source.lovely | source.lua",
    "settings": { "Lua.diagnostics.globals": ["love"] }
}

Known Issues / To-Do

  • (Bug) Invoking the API popup on anything under the love. namespace closes the autocomplete. This is unintended, and I'm not sure why it happens (help appreciated!)
  • Function override signatures not provided in hints
  • Hover tips are sometimes overridden by Reference tips
  • General clean-up / commenting
  • Implement function signature helper while typing in parameters (Added in 0.6.0)