Skip to content

Commit 4df8f70

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

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

types.yazi/README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,21 @@ 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+
<!-- prettier-ignore -->
16+
```json5
17+
{
18+
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
19+
"runtime.version": "Lua 5.4",
20+
"workspace.library": [
21+
// You may need to change the path to your local plugin directory
22+
"~/.config/yazi/plugins/types.yazi/",
23+
],
2624
}
2725
```
2826

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

3329
## Contributing
3430

0 commit comments

Comments
 (0)