Skip to content

Chore/remove remaining globals #1281

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

Merged

Conversation

alex-courtis
Copy link
Member

Merge #1279 #1280 first.

All g: gone.

@alex-courtis alex-courtis changed the base branch from master to chore/move-renderer-globals-2 May 22, 2022 07:09
@@ -83,7 +83,7 @@ local function get_icons_(node)

local icons = M.git_icons[git_status]
if not icons then
if vim.g.nvim_tree_git_hl ~= 1 then
if not M.config.highlight_git then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understands what this does, however it should still work.

Note that options under the `g:` command should be set **BEFORE** running the setup function.
These are being migrated to the setup function incrementally, check [this issue](https://github.com/kyazdani42/nvim-tree.lua/issues/674) if you encounter any problems related to configs not working after update.
Legacy `g:` options have been migrated to the setup function. See [this issue](https://github.com/kyazdani42/nvim-tree.lua/issues/674) for information on migrating your configuration.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably tidy the setup bits of the readme, maybe replacing the .vim configuration with .lua.

That can be done afterwards.

@kyazdani42
Copy link
Member

thanks of a lot for working on this :)

@alex-courtis alex-courtis merged commit 42597be into chore/move-renderer-globals-2 May 23, 2022
@alex-courtis alex-courtis deleted the chore/remove-remaining-globals branch December 16, 2022 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants