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

LSP-lua

by sublimelsp ST4

Convenience package with a lua language server bundled

Details

  • 1.0.10
  • github.​com
  • github.​com
  • 2 months ago
  • 25 minutes ago
  • 3 years ago

Installs

  • Total 2K
  • Win 1K
  • Mac 516
  • Linux 806
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14
Windows 6 3 6 2 3 2 3 4 4 1 1 0 1 3 1 1 0 1 1 2 1 0 1 2 1 2 2 1 0 1 3 1 1 2 4 4 3 2 0 1 1 1 2 1 2 0
Mac 1 1 1 2 2 1 2 0 1 0 1 0 1 0 0 1 0 1 1 0 0 0 0 0 2 0 0 0 0 2 1 2 0 0 1 2 0 0 1 2 0 1 1 0 0 0
Linux 2 4 2 1 0 2 1 2 0 2 2 1 3 4 1 1 1 1 2 0 0 0 1 1 1 2 2 1 3 1 1 0 2 2 1 1 0 1 0 3 0 2 3 4 1 3

Readme

Source
raw.​githubusercontent.​com

LSP-lua

A language client for Lua. This package will download and unpack the lua-language-server in $DATA/Package Storage/LSP-lua.

To use this package, you must have:

  • The LSP package.

Applicable Selectors

This language server operates on files with the source.lua base scope.

Configuration

Run Preferences: LSP-lua Settings from the Command Palette.

Locale

You can make this language server report documentation in English or Chinese. The default is English. To change it into Chinese, run the command Preferences: LSP-lua Settings and change the "locale" key.

Popup highlighting

The code blocks that this language server returns are not valid Lua code. Consequently the built-in syntax highlighter marks most code blocks as invalid. Set

"mdpopups.use_sublime_highlighter": false,

in Packages/User/Preferences.sublime-settings to use pygments instead, which is a highlighter that is more forgiving.

Disabling Diagnostics via Code Actions

This language server allows you to disable diagnostics by means of a Code Action. You can run the “Code Action” and the client (this package) is supposed to modify the settings to add or remove the unwanted diagnostic. This package implements that by editing your .sublime-project file. So in order for this to work, you need to have your window be backed by a .sublime-project file. Learn more about projects here.