feat: new types.yazi plugin
This commit is contained in:
@@ -17,6 +17,7 @@ For specific installation commands and configuration instructions, check the ind
|
||||
- [mount.yazi](mount.yazi) - A mount manager for Yazi, providing disk mount, unmount, and eject functionality.
|
||||
- [vcs-files.yazi](vcs-files.yazi) - Show Git file changes in Yazi.
|
||||
- [piper.yazi](piper.yazi) - Pipe any shell command as a previewer.
|
||||
- [types.yazi](types.yazi) - Type definitions for Yazi's Lua API, empowering an efficient plugin development experience.
|
||||
- [smart-filter.yazi](smart-filter.yazi) - Makes filters smarter: continuous filtering, automatically enter unique directory, open file on submitting.
|
||||
- [chmod.yazi](chmod.yazi) - Execute `chmod` on the selected files to change their mode.
|
||||
- [mime-ext.yazi](mime-ext.yazi) - A mime-type provider based on a file extension database, replacing the builtin `file(1)` to speed up mime-type retrieval at the expense of accuracy.
|
||||
|
||||
1
types.yazi/LICENSE
Symbolic link
1
types.yazi/LICENSE
Symbolic link
@@ -0,0 +1 @@
|
||||
../LICENSE
|
||||
44
types.yazi/README.md
Normal file
44
types.yazi/README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# types.yazi
|
||||
|
||||
Type definitions for Yazi's Lua API, empowering an efficient plugin development experience.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
ya pack -a yazi-rs/plugins:types
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Neovim
|
||||
|
||||
```lua
|
||||
require("lspconfig").lua_ls.setup {
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = {
|
||||
library = {
|
||||
vim.fn.expand("$HOME/.config/yazi/plugins/types.yazi"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
### Other editors
|
||||
|
||||
PRs are welcome!
|
||||
|
||||
## Contributing
|
||||
|
||||
All type definitions are automatically generated using [typegen.js][typegen.js] based on the latest [plugin documentation][plugin documentation],
|
||||
so contributions should be made in the [`yazi-rs.github.io` repository][doc-repo].
|
||||
|
||||
[typegen.js]: https://github.com/yazi-rs/yazi-rs.github.io/blob/main/scripts/typegen.js
|
||||
[plugin documentation]: https://yazi-rs.github.io/docs/plugins/overview
|
||||
[doc-repo]: https://github.com/yazi-rs/yazi-rs.github.io
|
||||
|
||||
## License
|
||||
|
||||
This plugin is MIT-licensed. For more information, check the [LICENSE](LICENSE) file.
|
||||
2404
types.yazi/main.lua
Normal file
2404
types.yazi/main.lua
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user