From e7f7ad4ca863974d47c76ad329ac5ed14fac0012 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 16 Feb 2024 10:36:41 +0100 Subject: [PATCH] relative number --- lua/custom/init.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 24586dc..2b1f16f 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -70,15 +70,16 @@ opt.foldlevel = 10 -- start with all folds open vim.o.guifont = "FiraCode Nerd Font:h22" opt.termguicolors = true opt.shortmess = "xsTOInfFitloCaAs" -opt.showmode = true -- Show mode in cmd window -opt.scrolloff = 2 -- Keep at least n lines above/below -opt.sidescrolloff = 0 -- Keep at least n lines left/right -opt.numberwidth = 2 -- Minimum number of columns to use for the line number -opt.number = true -- Show line numbers -opt.ruler = true -- Default status ruler -opt.list = true -- Show hidden characters -opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default -opt.laststatus = 3 -- Always show laststatus +opt.showmode = true -- Show mode in cmd window +opt.scrolloff = 2 -- Keep at least n lines above/below +opt.sidescrolloff = 0 -- Keep at least n lines left/right +opt.numberwidth = 2 -- Minimum number of columns to use for the line number +opt.number = true -- Show line numbers + opt.relativenumber = true -- Show relative line numbers +opt.ruler = true -- Default status ruler +opt.list = true -- Show hidden characters +opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default +opt.laststatus = 3 -- Always show laststatus if vim.g.started_by_firenvim == true then opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab