refactor(sydnix-cli): rewrite sydnix-cli
holy shit. why. why did i write the first version LOL. so fucking ocmplicated. and half broken.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
(use-package smartparens
|
||||
:hook (on-first-buffer . smartparens-global-mode)
|
||||
:commands (sp-pair sp-local-pair sp-with-modes
|
||||
sp-point-in-comment sp-point-in-string)
|
||||
sp-point-in-comment sp-point-in-string)
|
||||
:custom
|
||||
;; Overlays are too distracting and not terribly helpful. show-parens does
|
||||
;; this for us already (and is faster), so...
|
||||
@@ -59,8 +59,8 @@ It is only enabled it if `smartparens-global-mode' is on."
|
||||
("⟅" . "⟆")))
|
||||
(sp-pair (car pair) (cdr pair)))
|
||||
|
||||
(sp-local-pair
|
||||
'(js-mode nix-mode)
|
||||
"{" nil :post-handlers '(("||\n[i]" "RET"))))
|
||||
(sp-with-modes '(js-mode nix-mode)
|
||||
(sp-local-pair "{" nil :post-handlers '(("||\n[i]" "RET")))
|
||||
(sp-local-pair "[" nil :post-handlers '(("||\n[i]" "RET")))))
|
||||
|
||||
(provide 'syd/smartparens)
|
||||
|
||||
Reference in New Issue
Block a user