Skip to content
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

Migrate options to setup #221

Merged
merged 1 commit into from
Oct 11, 2022
Merged

Conversation

datsudo
Copy link

@datsudo datsudo commented Sep 5, 2022

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

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
@gnmearacaun
Copy link
Collaborator

gnmearacaun commented Oct 11, 2022

I believe this was was fixed fixed in master, but not in the branch. Thanks

@gnmearacaun gnmearacaun reopened this Oct 11, 2022
@gnmearacaun gnmearacaun merged commit 98fdc90 into LunarVim:12-nvimtree Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants