docs: fixed indentation of auto-generated code blocks

This commit is contained in:
Folke Lemaitre 2022-12-21 11:43:05 +01:00
parent 71b2e2ff7d
commit 9dfeface3f
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@ You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim**
```lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
@ -46,8 +46,8 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
end
vim.opt.runtimepath:prepend(lazypath)
```
<!-- bootstrap:end -->

View File

@ -40,7 +40,7 @@ function M.fix_indent(str)
end
for l, line in ipairs(lines) do
lines[l] = line:sub(width)
lines[l] = line:sub(width + 1)
end
return table.concat(lines, "\n")
end