-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
docs: misc #24163
docs: misc #24163
Conversation
ec2009b
to
a7c8497
Compare
3c8e874
to
81671d7
Compare
@@ -6816,6 +6816,7 @@ A jump table for the options with a short description can be found at |Q_op|. | |||
|
|||
Level Messages ~ | |||
---------------------------------------------------------------------- | |||
1 Enables Lua tracing (see above). Does not produce messages. | |||
2 When a file is ":source"'ed, or |shada| file is read or written. |
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.
@zeertzjq seems intuitive/helpful to have an item for level 1
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.
:fold({}, function(t, k, v) | ||
t[k] = v | ||
return t | ||
end) --> { b = 2, d = 4 } |
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.
- The shadowing of
t
added unnecessary questions to the old example. - Chaining methods emphasizes the "pipeline" aspect of
vim.iter
. - Using
acc
consistently is a useful signal to readers to notice the accumulator pattern.
1519303
to
75b04be
Compare
196d8d2
to
000a1c0
Compare
end | ||
}) | ||
|
||
To try it out, select the above code and source it with `:'<,'>lua`, then run |
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.
This is why :[range]lua
is cool.
1d5a88a
to
685a232
Compare
- Also delete old perl scripts which are not used since 8+ years ago. fix neovim#23251 fix neovim#27367 ref neovim#2252 (comment) Co-authored-by: Kevin Pham <[email protected]> Helped-by: Daniel Kongsgaard <[email protected]>
- Also delete old perl scripts which are not used since 8+ years ago. fix neovim#23251 fix neovim#27367 ref neovim#2252 (comment) Helped-by: Daniel Kongsgaard <[email protected]> Co-authored-by: Kevin Pham <[email protected]>
- Also delete old perl scripts which are not used since 8+ years ago. fix neovim#23251 fix neovim#27367 ref neovim#2252 (comment) Helped-by: Daniel Kongsgaard <[email protected]> Co-authored-by: Kevin Pham <[email protected]>
Other docs changes
:help terminal-events
to collect OSC examples