-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Migration guide #674
Comments
Please pin this or add a link to README! I was just surprised to find these options are gone. |
They changed the interface to be more lua based. nvim-tree/nvim-tree.lua#674
Thanks, this is helpful! |
good catch ! |
… guide is a good idea... see nvim-tree/nvim-tree.lua#674 2c096f3
Auto open doesn't work btw! config
|
exactly like described in the guide 😄 |
The
Then use this setup
The |
same here. I can't set width, in either way. |
Just to chime in here, I am also unable to get the width set using the above two comments method in the setup method. |
It would be nice if you added a link to this issue inside the deprecation warning messages. If you think the URL is too long, you could use GitHub's |
@ismikhail @nshen @sgalizia i cannot reproduce, could you open a new issue if this is still happening to you please ? |
This option was removed. See nvim-tree/nvim-tree.lua#674
Hi! Is there a reason why I still get this warning even with the default configuration? |
Are you receiving
For 2, please see #1334 1 indicates that you have global |
Thanks! I found some g. settings i had forgotten about! |
I can not understand here. I use the latest version and I got the warning each time I open nvim. Should I do some manually work here? |
You might have some |
@kyazdani42 |
The config option `respect_buf_cwd` was moved to the setup function See: nvim-tree/nvim-tree.lua#674
References: nvim-tree/nvim-tree.lua#674 Signed-off-by: Fletcher Nichol <[email protected]>
- vim.g.nvim_tree_icons -> renderer.icons.glyphs - view.auto_resize -> actions.open_file.resize_window - update_to_buf_dir -> hijack_directories ref: nvim-tree/nvim-tree.lua#674
This migrates and renamed the following options to `nvim_tree.setup` in accordance to nvim-tree migration guide: * vim.g.nvim_tree_icons -> moved to setup.renderer.icons.glyphs * setup.auto_close -> feature has been removed * setup.update_to_buf_dir -> renamed to hijack_directories * setup.quit_on_open -> moved to setup.actions.open_file * setup.git_hl -> renamed to highlight_git and moved to setup.renderer * setup.disable_window_picker -> renamed to window_picker and moved to setup.actions * setup.root_folder_modifier -> moved to setup.renderer * setup.show_icons -> moved to setup.renderer.icons.show; removed tree_width Migration guide: nvim-tree/nvim-tree.lua#674 nvim-tree docs : https://github.com/kyazdani42/nvim-tree.lua/blob/master/doc/nvim-tree-lua.txt
…nges from the nvim-tree plugin.
[Deprecations List](nvim-tree/nvim-tree.lua#674)
nvim-tree.lua once used global variables to define options. These have been moved into setup options.
g:nvim_tree_disable_netrw
->disable_netrw
g:nvim_tree_hijack_netrw
->hijack_netrw
g:nvim_tree_auto_open
->open_on_setup
g:nvim_tree_tab_open
->open_on_tab
g:nvim_tree_update_cwd
->update_cwd
g:nvim_tree_hijack_cursor
->hijack_cursor
g:nvim_tree_system_open_command
->system_open.cmd
g:nvim_tree_system_open_command_args
->system_open.args
g:nvim_tree_follow
->update_focused_file.enable
g:nvim_tree_follow_update_path
->update_focused_file.update_cwd
g:nvim_tree_lsp_diagnostics
->lsp_diagnostics
g:nvim_tree_auto_resize
->actions.open_file.resize_window
g:nvim_tree_bindings
->view.mappings.list
g:nvim_tree_hide_dotfiles
->filters.dotfiles
g:nvim_tree_ignore
->filters.custom
g:nvim_tree_gitignore
->git.ignore
g:nvim_tree_disable_window_picker
->actions.open_file.window_picker.enable
g:nvim_tree_window_picker_chars
->actions.open_file.window_picker.chars
g:nvim_tree_window_picker_exclude
->actions.open_file.window_picker.exclude
g:nvim_tree_change_dir_global
->actions.change_dir.global
g:nvim_tree_quit_on_open
->actions.open_file.quit_on_open
g:nvim_tree_indent_markers
->renderer.indent_markers.enable
g:nvim_tree_add_trailing
->renderer.add_trailing
g:nvim_tree_highlight_opened_files
->renderer.highlight_opened_files
0
->"none"
1
->"icon"
2
->"name"
3
->"all"
g:nvim_tree_root_folder_modifier
->renderer.root_folder_modifier
g:nvim_tree_special_files
->renderer.special_files
g:nvim_tree_icon_padding
->renderer.icons.padding
g:nvim_tree_symlink_arrow
->renderer.icons.symlink_arrow
g:nvim_tree_show_icons
->renderer.icons.show
files
->file
folders
->folder
folder_arrows
->folder_arrow
g:nvim_tree_icons
->renderer.icons.glyphs
g:nvim_tree_git_hl
->renderer.highlight_git
g:nvim_tree_group_empty
->renderer.group_empty
g:nvim_tree_respect_buf_cwd
->respect_buf_cwd
g:nvim_tree_create_in_closed_folder
->create_in_closed_folder
g:auto_close
feature was removed. See readme.g:nvim_tree_disable_keybindings
andg:nvim_tree_disable_default_keybindings
have been replaced by usingview.mappings.custom_only
.Setting
view.mappings.custom_only
totrue
andview.mappings.list
to{}
would do the same asg:nvim_tree_disable_keybindings
andview.mappings.custom_only
totrue
with your list of keybindings would do the same asnvim_tree_disable_default_keybindings
.The text was updated successfully, but these errors were encountered: