This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/lua/packages.el

50 lines
1.3 KiB
EmacsLisp
Raw Normal View History

;;; packages.el --- Lua Layer packages File for Spacemacs
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq lua-packages
'(
company
2017-07-03 07:52:54 +00:00
(company-lua :requires company)
flycheck
ggtags
counsel-gtags
helm-gtags
lua-mode
))
2015-01-14 03:31:40 +00:00
(defun lua/post-init-flycheck ()
(spacemacs/enable-flycheck 'lua-mode))
2015-01-14 03:31:40 +00:00
(defun lua/init-lua-mode ()
(use-package lua-mode
:defer t
2015-01-14 03:31:40 +00:00
:mode ("\\.lua\\'" . lua-mode)
:interpreter ("lua" . lua-mode)
:init (progn
(spacemacs/register-repl 'lua #'lua-show-process-buffer "lua")
(add-hook 'lua-mode-local-vars-hook #'spacemacs//lua-setup-backend))))
2015-05-28 18:06:50 +00:00
(defun lua/post-init-company ()
2019-11-12 03:29:50 +00:00
(add-hook 'lua-mode-local-vars-hook #'spacemacs//lua-setup-company))
(defun lua/init-company-lua ()
(use-package company-lua
:defer t))
(defun lua/post-init-ggtags ()
(add-hook 'lua-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))
(defun lua/post-init-counsel-gtags ()
(spacemacs/counsel-gtags-define-keys-for-mode 'lua-mode))
(defun lua/post-init-helm-gtags ()
(spacemacs/helm-gtags-define-keys-for-mode 'lua-mode))