ci: typechecking no longer requires neodev
This commit is contained in:
parent
8ac4ba4e0a
commit
15e071f203
8 changed files with 31 additions and 31 deletions
|
|
@ -19,6 +19,7 @@ local M = {}
|
|||
---@field list fun(path: string, column_defs: string[], cb: fun(err?: string, entries?: oil.InternalEntry[], fetch_more?: fun())) Async function to list a directory.
|
||||
---@field is_modifiable fun(bufnr: integer): boolean Return true if this directory is modifiable (allows for directories with read-only permissions).
|
||||
---@field get_column fun(name: string): nil|oil.ColumnDefinition If the adapter has any adapter-specific columns, return them when fetched by name.
|
||||
---@field get_parent? fun(bufname: string): string Get the parent url of the given buffer
|
||||
---@field normalize_url fun(url: string, callback: fun(url: string)) Before oil opens a url it will be normalized. This allows for link following, path normalizing, and converting an oil file url to the actual path of a file.
|
||||
---@field get_entry_path? fun(url: string, entry: oil.Entry, callback: fun(path: string)) Similar to normalize_url, but used when selecting an entry
|
||||
---@field render_action? fun(action: oil.Action): string Render a mutation action for display in the preview window. Only needed if adapter is modifiable.
|
||||
|
|
@ -29,10 +30,6 @@ local M = {}
|
|||
---@field filter_action? fun(action: oil.Action): boolean When present, filter out actions as they are created
|
||||
---@field filter_error? fun(action: oil.ParseError): boolean When present, filter out errors from parsing a buffer
|
||||
|
||||
-- TODO remove after https://github.com/folke/neodev.nvim/pull/163 lands
|
||||
---@diagnostic disable: undefined-field
|
||||
---@diagnostic disable: inject-field
|
||||
|
||||
---Get the entry on a specific line (1-indexed)
|
||||
---@param bufnr integer
|
||||
---@param lnum integer
|
||||
|
|
@ -540,11 +537,11 @@ M.open_preview = function(opts, callback)
|
|||
end
|
||||
|
||||
---@class (exact) oil.SelectOpts
|
||||
---@field vertical boolean Open the buffer in a vertical split
|
||||
---@field horizontal boolean Open the buffer in a horizontal split
|
||||
---@field split "aboveleft"|"belowright"|"topleft"|"botright" Split modifier
|
||||
---@field tab boolean Open the buffer in a new tab
|
||||
---@field close boolean Close the original oil buffer once selection is made
|
||||
---@field vertical? boolean Open the buffer in a vertical split
|
||||
---@field horizontal? boolean Open the buffer in a horizontal split
|
||||
---@field split? "aboveleft"|"belowright"|"topleft"|"botright" Split modifier
|
||||
---@field tab? boolean Open the buffer in a new tab
|
||||
---@field close? boolean Close the original oil buffer once selection is made
|
||||
|
||||
---Select the entry under the cursor
|
||||
---@param opts nil|oil.SelectOpts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue