mirror of https://github.com/folke/lazy.nvim.git
docs: fixed indentation of auto-generated code blocks
This commit is contained in:
parent
71b2e2ff7d
commit
9dfeface3f
|
@ -37,7 +37,7 @@ You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim**
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
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({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
|
@ -46,8 +46,8 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.runtimepath:prepend(lazypath)
|
vim.opt.runtimepath:prepend(lazypath)
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- bootstrap:end -->
|
<!-- bootstrap:end -->
|
||||||
|
|
|
@ -40,7 +40,7 @@ function M.fix_indent(str)
|
||||||
end
|
end
|
||||||
|
|
||||||
for l, line in ipairs(lines) do
|
for l, line in ipairs(lines) do
|
||||||
lines[l] = line:sub(width)
|
lines[l] = line:sub(width + 1)
|
||||||
end
|
end
|
||||||
return table.concat(lines, "\n")
|
return table.concat(lines, "\n")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue