From 1b0d825f1d3b2f426358057b9e06257dd7406a16 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 17 May 2026 06:08:20 +0200 Subject: [PATCH] chore: emmylua config for the lua runtime tree --- .emmyrc.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .emmyrc.json diff --git a/.emmyrc.json b/.emmyrc.json new file mode 100644 index 0000000..c774b16 --- /dev/null +++ b/.emmyrc.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json", + "runtime": { + "version": "LuaJIT", + "requirePattern": [ + "lua/?.lua", + "lua/?/init.lua" + ] + }, + "diagnostics": { + "disable": [ + "unnecessary-if", + "preferred-local-alias", + "redefined-local" + ] + }, + "workspace": { + "library": [ + "/usr/share/nvim/runtime" + ] + } +}