summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-05-01 17:33:29 +0200
committerAlan Pearce2023-05-05 21:08:16 +0200
commitc6eecb147cb88530f726a557b552cb5077449693 (patch)
tree503bc68fee7e39adedfbc87eb950ebb25e5d59c3
parent894e28028f2eb3c0e92d61725a5b2993a634763b (diff)
downloadnixfiles-c6eecb147cb88530f726a557b552cb5077449693.tar.lz
nixfiles-c6eecb147cb88530f726a557b552cb5077449693.tar.zst
nixfiles-c6eecb147cb88530f726a557b552cb5077449693.zip
dev: add basic lua setup
-rw-r--r--user/emacs/init.el1
-rw-r--r--user/settings/development/base.nix1
-rw-r--r--user/settings/neovim.nix4
3 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index a060b352..50477c72 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1048,6 +1048,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             js-mode-hook
             css-mode-hook
             go-mode-hook
+            lua-mode-hook
             scss-mode-hook
             html-mode-hook
             nix-mode-hook
diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix
index 51aa0447..32a52edf 100644
--- a/user/settings/development/base.nix
+++ b/user/settings/development/base.nix
@@ -17,6 +17,7 @@ in
       nodePackages.dockerfile-language-server-nodejs
       nodePackages.vscode-json-languageserver
       nodePackages.yaml-language-server
+      lua-language-server
       multimarkdown
       interactively
 
diff --git a/user/settings/neovim.nix b/user/settings/neovim.nix
index d86f403f..be64bc93 100644
--- a/user/settings/neovim.nix
+++ b/user/settings/neovim.nix
@@ -38,6 +38,10 @@
             command = "${pkgs.nil}/bin/nil";
             filetypes = [ "nix" ];
           };
+          lua = {
+            command = "${pkgs.lua-language-server}/bin/lua-language-server";
+            filetypes = [ "lua" ];
+          };
         };
       };
     };