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

LSP-lua

by sublimelsp ST4

Convenience package with a lua language server bundled

Details

Installs

  • Total 3K
  • Win 1K
  • Mac 558
  • Linux 886
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 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 5 5 2 0 4 1 2 0 0 1 8 0 5 1 4 4 3 1 2 3 3 0 3 7 3 3 0 2 0 1 0 2 2 1 2 1 1 3 0 0 5 1 2 3 1 5
Mac 2 0 0 0 1 0 0 0 0 3 2 2 2 4 4 2 1 0 0 0 0 0 1 2 1 0 1 0 0 1 1 1 1 0 1 1 0 2 1 0 0 2 1 3 0 0
Linux 0 5 0 1 2 0 0 0 3 2 2 1 2 0 0 1 2 1 2 4 1 1 1 1 1 1 0 1 1 0 3 2 2 2 3 5 3 1 4 5 1 5 4 3 0 4

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.