From: Samir Benmendil Date: Wed, 3 May 2023 20:13:58 +0000 (+0100) Subject: nvim: hardwrap man pages to 80 X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b737e4be5b54a66bbcbf1f70157553806c2154f9?ds=inline nvim: hardwrap man pages to 80 This is to be consistent with normal man, and it looks soo much better than nvim's built in soft wrapping. --- diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 60c4ad3..547ed75 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -2,6 +2,9 @@ local opt = vim.opt +vim.g.man_hardwrap = 1 +vim.env.MANWIDTH = 80 + -- Some settings taken from LazyVim's default options opt.pumblend = 10 -- Popup blend opt.pumheight = 10 -- Maximum number of entries in a popup