Skip to content

Commit 1ff5f8b

Browse files
committed
docs: use .luarc.json for LuaLS configuration
1 parent ea38b47 commit 1ff5f8b

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

types.yazi/README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,20 @@ ya pack -a yazi-rs/plugins:types
1010

1111
## Usage
1212

13-
### Neovim
14-
15-
```lua
16-
require("lspconfig").lua_ls.setup {
17-
settings = {
18-
Lua = {
19-
workspace = {
20-
library = {
21-
vim.fn.expand("$HOME/.config/yazi/plugins/types.yazi"),
22-
},
23-
},
24-
},
25-
},
13+
Create a `.luarc.json` file in your project root:
14+
15+
```json5
16+
{
17+
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
18+
"runtime.version": "Lua 5.4",
19+
"workspace.library": [
20+
// You may need to change the path to your local plugin directory
21+
"~/.config/yazi/plugins/types.yazi/",
22+
],
2623
}
2724
```
2825

29-
### Other editors
30-
31-
PRs are welcome!
26+
See https://luals.github.io/wiki/configuration/ for more information on how to configure LuaLS.
3227

3328
## Contributing
3429

0 commit comments

Comments
 (0)