Skip to content

Commit ca4afce

Browse files
committed
fixup! feat: deprecate lsp.color config and add warning for Neovim 0.12+ users
1 parent f55fe54 commit ca4afce

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

lua/flutter-tools/config.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ local deprecations = {
166166
}
167167

168168
local function notify_deprecation(key, message)
169-
vim.defer_fn(function()
170-
ui.notify(fmt("%s is deprecated: %s", key, message), ui.WARN, { once = true })
171-
end, 1000)
169+
vim.defer_fn(
170+
function() ui.notify(fmt("%s is deprecated: %s", key, message), ui.WARN, { once = true }) end,
171+
1000
172+
)
172173
end
173174

174175
local function should_notify_deprecation(deprecation)

lua/flutter-tools/devices.lua

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,16 @@ function M.to_selection_entries(result, device_type)
6565
if not device_type then device_type = DEVICE end
6666
local devices = get_devices(result, device_type)
6767
if #devices == 0 then
68-
return vim.tbl_map(function(item)
69-
return {
70-
text = item,
71-
type = ui.entry_type.INFO,
72-
data = nil,
73-
}
74-
end, result)
68+
return vim.tbl_map(
69+
function(item)
70+
return {
71+
text = item,
72+
type = ui.entry_type.INFO,
73+
data = nil,
74+
}
75+
end,
76+
result
77+
)
7578
end
7679
return vim.tbl_map(function(device)
7780
local has_platform = device.platform and device.platform ~= ""

0 commit comments

Comments
 (0)