-
-
Notifications
You must be signed in to change notification settings - Fork 623
chore: stylua column width 120 -> 140 #2448
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
Conversation
warning, | ||
"Please see https://github.com/nvim-tree/nvim-tree.lua/wiki/Troubleshooting#could-not-start-fs_event-for-path--emfile" | ||
) | ||
M.disable_watchers "fs.inotify.max_user_watches exceeded, see https://github.com/nvim-tree/nvim-tree.lua/wiki/Troubleshooting" |
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.
Tidied message.
then | ||
|
||
local node_contains_buf = vim.startswith(bufpath:gsub("\\", "/"), nodepath:gsub("\\", "/") .. "/") | ||
if M.show_on_dirs and node_contains_buf and (not node.open or M.show_on_open_dirs) 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.
Broke up.
.. git_status | ||
.. '". Please open up an issue on https://github.com/nvim-tree/nvim-tree.lua/issues with this message.' | ||
) | ||
notify.warn(string.format("Unrecognized git state '%s'", git_status)) |
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.
Message is no longer needed; we were fishing for unknown statuses.
#M.window_picker.chars | ||
) | ||
) | ||
notify.error(string.format("More windows (%d) than actions.open_file.window_picker.chars (%d).", #selectable, #M.window_picker.chars)) |
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.
Action is obvious :)
notify.warn(string.format("system_open failed with return code %d: %s", code, process.errors)) | ||
end | ||
|
||
local opts = { args = process.args, stdio = { nil, nil, process.stderr }, detached = true } |
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.
broke up
opts.timeout | ||
) | ||
) | ||
notify.warn(string.format("%d git jobs have timed out after git.timeout %dms, disabling git integration.", timeouts, opts.timeout)) |
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.
Message was too verbose
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.
Overall everything looks good to me, maybe I would format a couple of tables line by line instead of all on a single line, but that's a really minor gripe.
Please do. Single line is situational, with line by line being much more readable and the general convention. Edit: I'm going to merge this one now, as we will soon get many merge conflicts. @Akmadan23 can you please raise another PR? |
Of course |
No
"if$"
remaining, adds readability.#2449 increases to 160 however those long lines are genuinely too long. Manually resolved those, see with comments.