LUA support

This commit is contained in:
Curt Spark 2023-06-14 20:18:25 +01:00
parent 0f4f7579bb
commit 964b614e38
2 changed files with 15 additions and 3 deletions

View File

@ -685,12 +685,12 @@ Install the package, enable it and ensure that it always is installed, and then
Rich Presence in Emacs for discord, `https://github.com/Mstrodl/elcord`
Install the package, enable it and ensure that it always is installed, and then enable the mode:
#+BEGIN_SRC emacs-lisp
+BEGIN_SRC emacs-lisp
(use-package elcord
:ensure t
:init
(elcord-mode 1))
#+END_SRC
+END_SRC
** Nix Mode
An Emacs major mode for editing Nix expressions. There is also a manual available at nix-mode.org.
@ -706,6 +706,8 @@ lua-mode is a major mode for editing Lua sources in Emacs.
#+BEGIN_SRC emacs-lisp
(use-package lua-mode
:ensure t)
(add-to-list 'auto-mode-alist '("\\.iy\\'" . lua-mode))
#+END_SRC
** LSP Mode
@ -753,6 +755,16 @@ on how to install the Programming Language Servers that you want.
(use-package dap-mode
:ensure t)
;; (use-package dap-LANGUAGE) to load the dap adapter for your language
;; New luau lsp for roblox implementation
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration
'(lua-mode . "luau"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "luau-lsp")
:activation-fn (lsp-activate-on "luau")
:server-id 'luau-lsp)))
#+END_SRC
** Edwina Dynamic Tiling

View File

@ -1 +1 @@
("~/.emacs.d/")
("c:/Users/seaspark/Documents/Sparks-IY-Plugin/" "~/.emacs.d/" "z:/Documents/Roblox Scripts/Sparks IY Plugin/Sparks-IY-Plugin/")