-
Is there an option to enable line numbers? Something like in a NerdTree:
If I manually do |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Ok, thanks. I'll keep using this for now:
Maybe line number support will be part of |
Beta Was this translation helpful? Give feedback.
-
@desprit There's no need for it to be part of the API. Achieving what you describe here is a pretty common application for auto commands. I would just add an auto command like this: au BufWinEnter NvimTree setlocal rnu |
Beta Was this translation helpful? Give feedback.
-
I can't get this autocommand to work. I also don't know how to call Variants I've tried:
I can get it working with wrapper functions around each nvim-tree function call I use, but I would prefer not using that approach. |
Beta Was this translation helpful? Give feedback.
-
Has something changed? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
For others stumbling onto this from Google, this can now be configured in the setup call: require('nvim-tree').setup({view = {relativenumber = true}}) |
Beta Was this translation helpful? Give feedback.
For others stumbling onto this from Google, this can now be configured in the setup call: