Skip to content

Comments

fix: shorten string.format(), code optimizations and corrections#2

Open
DrKJeff16 wants to merge 2 commits intojetm:mainfrom
DrKJeff16:patch/fixup
Open

fix: shorten string.format(), code optimizations and corrections#2
DrKJeff16 wants to merge 2 commits intojetm:mainfrom
DrKJeff16:patch/fixup

Conversation

@DrKJeff16
Copy link

Description

I've replaced every instance of string.format(x, ...) with x:format(...). It's shorter and easier to handle.

I've also collapsed some conditional variable definitions into ternary operators for more efficiency.

Finally I changed the value of vim.g.loaded_rehunk from v:true to 1. This is for practical reasons within the Vim ecosystem and also it's the standard practice.

If there's any feedback, let me know!

Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
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.

1 participant