mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(lua): reformat with stylua 0.14.0 (#19264)
* reformat Lua runtime to make lint CI pass * reduce max line length to 100
This commit is contained in:
@@ -102,9 +102,13 @@ do -- buffer option accessor
|
||||
if type(k) == 'string' then
|
||||
_setup()
|
||||
if win_options[k] then
|
||||
error(string.format([['%s' is a window option, not a buffer option. See ":help %s"]], k, k))
|
||||
error(
|
||||
string.format([['%s' is a window option, not a buffer option. See ":help %s"]], k, k)
|
||||
)
|
||||
elseif glb_options[k] then
|
||||
error(string.format([['%s' is a global option, not a buffer option. See ":help %s"]], k, k))
|
||||
error(
|
||||
string.format([['%s' is a global option, not a buffer option. See ":help %s"]], k, k)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -132,9 +136,13 @@ do -- window option accessor
|
||||
if type(k) == 'string' then
|
||||
_setup()
|
||||
if buf_options[k] then
|
||||
error(string.format([['%s' is a buffer option, not a window option. See ":help %s"]], k, k))
|
||||
error(
|
||||
string.format([['%s' is a buffer option, not a window option. See ":help %s"]], k, k)
|
||||
)
|
||||
elseif glb_options[k] then
|
||||
error(string.format([['%s' is a global option, not a window option. See ":help %s"]], k, k))
|
||||
error(
|
||||
string.format([['%s' is a global option, not a window option. See ":help %s"]], k, k)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -252,7 +260,12 @@ local function assert_valid_value(name, value, types)
|
||||
end
|
||||
|
||||
error(
|
||||
string.format("Invalid option type '%s' for '%s', should be %s", type_of_value, name, table.concat(types, ' or '))
|
||||
string.format(
|
||||
"Invalid option type '%s' for '%s', should be %s",
|
||||
type_of_value,
|
||||
name,
|
||||
table.concat(types, ' or ')
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user