Remove unnecessary config
- smartparens-terra doesn't exist - terra-indent-level has a sensible initial value, so it doesn't need to be reset
This commit is contained in:
parent
b3594e55f7
commit
3ba364a0a9
1 changed files with 0 additions and 12 deletions
|
@ -1,24 +1,12 @@
|
||||||
;;; lang/lua/config.el -*- lexical-binding: t; -*-
|
;;; lang/lua/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; sp's default rules are obnoxious, so disable them
|
|
||||||
(provide 'smartparens-terra)
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Major modes
|
;; Major modes
|
||||||
|
|
||||||
(def-package! terra-mode
|
(def-package! terra-mode
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
|
||||||
;; lua-indent-level defaults to 3 otherwise. Madness.
|
|
||||||
(setq terra-indent-level tab-width)
|
|
||||||
:config
|
:config
|
||||||
(set-lookup-handlers! 'terra-mode :documentation 'terra-search-documentation)
|
(set-lookup-handlers! 'terra-mode :documentation 'terra-search-documentation)
|
||||||
(set-electric! 'terra-mode :words '("else" "end"))
|
(set-electric! 'terra-mode :words '("else" "end"))
|
||||||
(set-repl-handler! 'terra-mode #'+terra/open-repl)
|
(set-repl-handler! 'terra-mode #'+terra/open-repl)
|
||||||
(set-company-backend! 'terra-mode '(company-lua company-yasnippet)))
|
(set-company-backend! 'terra-mode '(company-lua company-yasnippet)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
|
||||||
;; Frameworks
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue