Fix nlinum-relative line numbering #376
Fixed padding; now relative line numbers look consistent with its non-relative counterpart.
This commit is contained in:
parent
01787fc876
commit
64a674dcc9
2 changed files with 5 additions and 3 deletions
|
@ -32,8 +32,8 @@ Uses `display-line-numbers' in Emacs 26+ and `nlinum-mode' everywhere else."
|
||||||
(setq display-line-numbers next))
|
(setq display-line-numbers next))
|
||||||
((featurep 'nlinum)
|
((featurep 'nlinum)
|
||||||
(pcase next
|
(pcase next
|
||||||
(`t (nlinum-relative-mode -1) (nlinum-mode +1))
|
(`t (nlinum-relative-off) (nlinum-mode +1))
|
||||||
(`relative (nlinum-relative-mode +1))
|
(`relative (nlinum-relative-on))
|
||||||
(`nil (nlinum-mode -1))))
|
(`nil (nlinum-mode -1))))
|
||||||
(t
|
(t
|
||||||
(error "No line number plugin detected")))))
|
(error "No line number plugin detected")))))
|
||||||
|
|
|
@ -416,7 +416,9 @@ character that looks like a space that `whitespace-mode' won't affect.")
|
||||||
(def-package! nlinum-relative
|
(def-package! nlinum-relative
|
||||||
:unless (boundp 'display-line-numbers)
|
:unless (boundp 'display-line-numbers)
|
||||||
:commands nlinum-relative-mode
|
:commands nlinum-relative-mode
|
||||||
:config (after! evil (nlinum-relative-setup-evil)))
|
:config
|
||||||
|
(setq nlinum-format " %d ")
|
||||||
|
(after! evil (nlinum-relative-setup-evil)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue