From 9dfeface3fc7e483a6688427e5a9dd04cb36a93b Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 21 Dec 2022 11:43:05 +0100 Subject: [PATCH] docs: fixed indentation of auto-generated code blocks --- README.md | 22 +++++++++++----------- lua/lazy/docs.lua | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) 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