diff --git a/README.md b/README.md index 83a95f9..62ac8ab 100644 --- a/README.md +++ b/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) ``` diff --git a/lua/lazy/docs.lua b/lua/lazy/docs.lua index 73090c5..b8020ae 100644 --- a/lua/lazy/docs.lua +++ b/lua/lazy/docs.lua @@ -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