Skip to content

Instantly share code, notes, and snippets.

@idcrook
Last active September 18, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idcrook/3a0f33b7dc8cba1dbd4d26959f48dd9b to your computer and use it in GitHub Desktop.
Save idcrook/3a0f33b7dc8cba1dbd4d26959f48dd9b to your computer and use it in GitHub Desktop.
neotree 26.1 display-line-numbers-mode
;; sidebar and dired in one
(use-package neotree
:bind
("<f8>" . neotree-toggle)
:config
;; needs package all-the-icons
(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
;; Disable line-numbers minor mode for neotree
(add-hook 'neo-after-create-hook
(lambda (&rest _) (display-line-numbers-mode -1)))
;; Every time when the neotree window is opened, let it find current
;; file and jump to node.
(setq neo-smart-open t)
;; track ‘projectile-switch-project’ (C-c p p),
(setq projectile-switch-project-action 'neotree-projectile-action))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment