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
|
||||
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 -->
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue