Skip to content

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

Merged
merged 10 commits into from
Oct 8, 2023
Merged

Conversation

alex-courtis
Copy link
Member

@alex-courtis alex-courtis commented Oct 7, 2023

No "if$" remaining, adds readability.

#2449 increases to 160 however those long lines are genuinely too long. Manually resolved those, see with comments.

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"
Copy link
Member Author

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
Copy link
Member Author

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))
Copy link
Member Author

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))
Copy link
Member Author

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 }
Copy link
Member Author

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))
Copy link
Member Author

Choose a reason for hiding this comment

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

Message was too verbose

@alex-courtis alex-courtis requested a review from Akmadan23 October 7, 2023 04:56
Copy link
Collaborator

@Akmadan23 Akmadan23 left a 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.

@alex-courtis
Copy link
Member Author

alex-courtis commented Oct 8, 2023

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?

@alex-courtis alex-courtis merged commit 53b0bca into master Oct 8, 2023
@alex-courtis alex-courtis deleted the stylua-width-120-to-140 branch October 8, 2023 00:41
@Akmadan23
Copy link
Collaborator

@Akmadan23 can you please raise another PR?

Of course

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