-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling line numbers on Neotree #3202
Comments
|
@robbyoconnor Yeah, that's what I have been doing, I was curious if there was anything I could add to my |
Try this in your dotfile (with-eval-after-load 'neotree
(add-hook 'neotree-mode-hook
(lambda () (with-current-buffer " *NeoTree*"
(setq-local linum-mode nil))))) |
@justbur Thank you for your help. I am getting |
Probably need to use a mode-hook. I can't test this right now but i edited my previous comment to show how. If that doesn't work, I'll figure it out tomorrow for you. |
@justbur Very weird. I can play around with it a little, seems to be giving me the same error. |
@angrygoats How about this ? (defun my/neotree-hook (_unused)
(linum-mode -1))
(add-hook 'neo-after-create-hook 'my/neotree-hook) |
@syohex Where should I put this in my dotfile? |
Put it in |
This really should be default imho. |
Oddly enough, I don't have this problem. Doing a live reload with |
I've seen it too with |
#3557 will solve this. |
Hey everyone,
I was enabling line numbers and it seems that if you use the code
It will enable line numbers as expected, however it also enables them in neotree! Its not critical or anything, but it seems pointless to have them in there. Is there anything I can add to remove them just for neotree, or is this intended behavior?
Thanks!
The text was updated successfully, but these errors were encountered: