From 4df8f70eb643963f6b2d32045342fee311ea95fd Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 26 May 2025 20:07:18 +0800 Subject: [PATCH] docs: use `.luarc.json` for LuaLS configuration --- types.yazi/README.md | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/types.yazi/README.md b/types.yazi/README.md index f1cd50e..34ebee5 100644 --- a/types.yazi/README.md +++ b/types.yazi/README.md @@ -10,25 +10,21 @@ ya pack -a yazi-rs/plugins:types ## Usage -### Neovim +Create a `.luarc.json` file in your project root: -```lua -require("lspconfig").lua_ls.setup { - settings = { - Lua = { - workspace = { - library = { - vim.fn.expand("$HOME/.config/yazi/plugins/types.yazi"), - }, - }, - }, - }, + +```json5 +{ + "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", + "runtime.version": "Lua 5.4", + "workspace.library": [ + // You may need to change the path to your local plugin directory + "~/.config/yazi/plugins/types.yazi/", + ], } ``` -### Other editors - -PRs are welcome! +See https://luals.github.io/wiki/configuration/ for more information on how to configure LuaLS. ## Contributing