edkolev / evil-lion

Evil align operator
131 stars 12 forks source link

Incorrect indentation #16

Open Vurp opened 2 years ago

Vurp commented 2 years ago

When using evil-lion functions on lisp forms the result always gets two spaces as indentation regardless. For example gl<space> gives this result (<m> refers to the mark and | refers to point):

Before:

(prog1 'evil-surround
  (add-to-list 'package-selected-packages 'evil-surround)
  (when (fboundp 'evil-surround-mode)
    (autoload #'evil-surround-edit "evil-surround" nil t)
    (autoload #'evil-Surround-edit "evil-surround" nil t)
    (autoload #'evil-surround-region "evil-surround" nil t)
    (autoload #'evil-Surround-region "evil-surround" nil t)
<m> (define-key evil-operator-state-map "s" 'evil-surround-edit)
    (define-key evil-operator-state-map "S" 'evil-Surround-edit)
    (define-key evil-visual-state-map "s" 'evil-surround-region)
    (define-key evil-visual-state-map "S" 'evil-Surround-region)))
|

After:

(prog1 'evil-surround
  (add-to-list 'package-selected-packages 'evil-surround)
  (when (fboundp 'evil-surround-mode)
    (autoload #'evil-surround-edit "evil-surround" nil t)
    (autoload #'evil-Surround-edit "evil-surround" nil t)
    (autoload #'evil-surround-region "evil-surround" nil t)
    (autoload #'evil-Surround-region "evil-surround" nil t)
| (define-key evil-operator-state-map "s" 'evil-surround-edit)
  (define-key evil-operator-state-map "S" 'evil-Surround-edit)
  (define-key evil-visual-state-map   "s" 'evil-surround-region)
  (define-key evil-visual-state-map   "S" 'evil-Surround-region)))

Versions:

Emacs 28.1 Evil: 1.14.2 Evil-lion: 0.0.2

I have other packages installed as well, but these are the most relevant.

teehemkay commented 1 year ago

I'm observing the same behavior (using doom emacs latest version)