diff --git a/7.-Example-Custom-Plugins.md b/7.-Example-Custom-Plugins.md index f7a7d0f..9239d7b 100644 --- a/7.-Example-Custom-Plugins.md +++ b/7.-Example-Custom-Plugins.md @@ -1998,6 +1998,15 @@ return { return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth") end + local mode = { + "mode", + padding = 1, + separator = { left = "", right = "" }, + right_padding = 3, + fmt = function(str) + return " " .. str + end, + } -- stylua: ignore local colors = { @@ -2070,7 +2079,7 @@ return { }, sections = { lualine_a = { - { "mode", separator = { left = "" }, right_padding = 3 }, + mode, }, -- lualine_b = { "filename", "branch" }, lualine_b = { "branch" }, @@ -2078,7 +2087,7 @@ return { lualine_x = { diff, spaces, "filetype" }, lualine_y = { "progress" }, lualine_z = { - { "location", separator = { right = "" }, left_padding = 3 }, + { "location", separator = { left = "", right = "" }, left_padding = 3 }, }, }, inactive_sections = {