doc: improve documentation for set_sort (#401)

This commit is contained in:
Steven Arcangeli 2024-06-02 17:45:22 -07:00
parent 15e071f203
commit d3a365c950
3 changed files with 17 additions and 5 deletions

View file

@ -255,7 +255,12 @@ set_sort({sort}) *oil.set_sor
Change the sort order for oil
Parameters:
{sort} `string[]` []
{sort} `oil.SortSpec[]` List of columns plus direction. See :help oil-
columns to see which ones are sortable.
Examples: >lua
require("oil").set_sort({ { "type", "asc" }, { "size", "desc" } })
<
set_is_hidden_file({is_hidden_file}) *oil.set_is_hidden_file*
Change how oil determines if the file is hidden