diff options
| author | Indrajith K L | 2025-11-03 23:57:29 +0530 |
|---|---|---|
| committer | Indrajith K L | 2025-11-03 23:57:29 +0530 |
| commit | f543450459bc2309e01df70073f30dcf7038b170 (patch) | |
| tree | 16cdf1b70464af82504ac7d9ca099750d1e774fb | |
| parent | 04d4948fcb52cbf5ef34ffb1aa220b6f2a6ec499 (diff) | |
| download | reilua-enhanced-f543450459bc2309e01df70073f30dcf7038b170.tar.gz reilua-enhanced-f543450459bc2309e01df70073f30dcf7038b170.tar.bz2 reilua-enhanced-f543450459bc2309e01df70073f30dcf7038b170.zip | |
Add Zed editor configuration samplechore/editor-settings
- Added zed.sample.settings.json with complete LSP configuration for Lua
- Updated ZED_EDITOR_SETUP.md to reference the sample configuration file
- Includes proper Lua 5.4 runtime settings and ReiLua globals
- Configured diagnostics and inlay hints for better developer experience
| -rw-r--r-- | docs/ZED_EDITOR_SETUP.md | 2 | ||||
| -rw-r--r-- | zed.sample.settings.json | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/docs/ZED_EDITOR_SETUP.md b/docs/ZED_EDITOR_SETUP.md index 6f72482..626f06b 100644 --- a/docs/ZED_EDITOR_SETUP.md +++ b/docs/ZED_EDITOR_SETUP.md @@ -130,7 +130,7 @@ To make ReiLua API available for all projects: ## Method 3: Using Zed's LSP Configuration Create a `.zed/settings.json` in your project: - +> Note There is a sample zed settings json file in the repo root (zed.sample.settings.json) ```json { "lsp": { diff --git a/zed.sample.settings.json b/zed.sample.settings.json new file mode 100644 index 0000000..9c96424 --- /dev/null +++ b/zed.sample.settings.json @@ -0,0 +1,32 @@ +{ + "inlay_hints": { + "enabled": true + }, + "lsp": { + "lua-language-server": { + "settings": { + "Lua.runtime.version": "Lua 5.4", + "Lua.workspace.library": [ + "." + ], + "Lua.completion.enable": true, + "Lua.completion.callSnippet": "Replace", + "Lua.completion.displayContext": 3, + "Lua.diagnostics.globals": [ + "RL" + ], + "Lua.hint.enable": true, + "Lua.hint.paramName": "All", + "Lua.hint.setType": true, + "Lua.hint.paramType": true, + "Lua.diagnostics.disable": [ + "lowercase-global", + "unused-local", + "duplicate-set-field", + "missing-fields", + "undefined-field" + ] + } + } + } +} |
