doomemacs/modules/lang/lua
2020-06-04 20:13:28 -04:00
..
autoload lang/lua: minor reformatting 2019-10-28 23:23:12 -04:00
config.el General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
packages.el Fix #2373: bring back package pinning 2020-01-25 19:02:00 -05:00
README.org [lang/lua] Add LSP flag and support for Lua 2020-06-03 14:57:00 +02:00

lang/lua

Description

Adds Lua support to Doom Emacs

  • REPL
  • Love2D specific functions
  • Moonscript support

Maintainers

This module has no dedicated maintainers.

Module Flags

  • +moonscript Moonscript language support
  • +lsp Language Server Protocol support

Plugins

Prerequisites

Language Server Protocol servers

Currently the servers supported depend on the :tools lsp flavor you are using

LSP-mode

This server is built in Java, so a java environment will be necessary

LSP-mode documentation has more information about setting up the server and the configuration variables correctly (use a bare (setq lsp-clients-emmy-lua-java-path value) in your config.el)

Eglot

This server is built in Lua, so a lua environment will be necessary

  • lua-language-server must be installed and built locally, with lua-lsp-dir variable pointing to the root of the repository

TODO Features

Configuration

lua-lsp-dir
This must be set when using +lsp and using lua-language-server. This controls where the repository has been cloned and built to finish the configuration of the server.

Troubleshooting

Install lua-language-server

A catch-all issue has been created to gather help for installing lua-language-server on non-VSCode platforms.