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
22
README.md
22
README.md
|
@ -37,17 +37,17 @@ 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
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"--single-branch",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.runtimepath:prepend(lazypath)
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"--single-branch",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
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