Skip to content

Commit 9f3c6dd

Browse files
committed
chore: update emmylua and stylua
1 parent 3121727 commit 9f3c6dd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.emmyrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
},
66
"diagnostics" : {
77
"disable" : [
8-
"unnecessary-if"
8+
"unnecessary-if",
9+
"invert-if"
910
],
1011
"enables": [
1112
"iter-variable-reassign",

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ STYLUA_PLATFORM_MACOS := macos-aarch64
7171
STYLUA_PLATFORM_LINUX := linux-x86_64
7272
STYLUA_PLATFORM := $(STYLUA_PLATFORM_$(UNAME))
7373

74-
STYLUA_VERSION := v2.0.2
74+
STYLUA_VERSION := v2.3.1
7575
STYLUA_ZIP := stylua-$(STYLUA_PLATFORM).zip
7676
STYLUA_URL_BASE := https://github.com/JohnnyMorganz/StyLua/releases/download
7777
STYLUA_URL := $(STYLUA_URL_BASE)/$(STYLUA_VERSION)/$(STYLUA_ZIP)
@@ -107,7 +107,7 @@ else
107107
EMMYLUA_ARCH ?= x64
108108
endif
109109

110-
EMMYLUA_REF := 0.19.0
110+
EMMYLUA_REF := 0.20.0
111111
EMMYLUA_OS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
112112

113113
EMMYLUA_RELEASE_URL_BASE := https://github.com/EmmyLuaLs/emmylua-analyzer-rust/releases/download/$(EMMYLUA_REF)

lua/gitsigns/debug/log.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ local function getvarvalue(name, lvl)
4242
end
4343

4444
-- try upvalues
45-
local func = debug.getinfo(lvl).func
45+
local func = assert(debug.getinfo(lvl)).func
4646
i = 1
4747
while true do
4848
local n, v = debug.getupvalue(func, i)

0 commit comments

Comments
 (0)