-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
Chore/remove remaining globals #1281
Conversation
@@ -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 |
There was a problem hiding this comment.
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. | ||
|
There was a problem hiding this comment.
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.
thanks of a lot for working on this :) |
Merge #1279 #1280 first.
All
g:
gone.