nvim: run stylua

This commit is contained in:
Primrose 2025-07-08 13:39:02 +02:00
parent 3f5e236fe5
commit e91471432f
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
7 changed files with 28 additions and 11 deletions

View file

@ -120,11 +120,17 @@ vim.api.nvim_create_autocmd("OptionSet", {
})
vim.api.nvim_create_user_command("Retab", function(opts)
if #opts.fargs ~= 2 then return print("should have exactly two argument: [src] and [dst]") end
if #opts.fargs ~= 2 then
return print("should have exactly two argument: [src] and [dst]")
end
local src = tonumber(opts.fargs[1])
local dst = tonumber(opts.fargs[2])
if src == nil then print("first argument [src] is not a valid number") end
if dst == nil then print("second argument [dst] is not a valid number") end
if src == nil then
print("first argument [src] is not a valid number")
end
if dst == nil then
print("second argument [dst] is not a valid number")
end
vim.bo.shiftwidth = src
vim.bo.tabstop = src