docs: use .luarc.json for LuaLS configuration
This commit is contained in:
@@ -10,25 +10,21 @@ ya pack -a yazi-rs/plugins:types
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Neovim
|
Create a `.luarc.json` file in your project root:
|
||||||
|
|
||||||
```lua
|
<!-- prettier-ignore -->
|
||||||
require("lspconfig").lua_ls.setup {
|
```json5
|
||||||
settings = {
|
{
|
||||||
Lua = {
|
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
||||||
workspace = {
|
"runtime.version": "Lua 5.4",
|
||||||
library = {
|
"workspace.library": [
|
||||||
vim.fn.expand("$HOME/.config/yazi/plugins/types.yazi"),
|
// You may need to change the path to your local plugin directory
|
||||||
},
|
"~/.config/yazi/plugins/types.yazi/",
|
||||||
},
|
],
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Other editors
|
See https://luals.github.io/wiki/configuration/ for more information on how to configure LuaLS.
|
||||||
|
|
||||||
PRs are welcome!
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user