]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: hardwrap man pages to 80
authorSamir Benmendil <me@rmz.io>
Wed, 3 May 2023 20:13:58 +0000 (21:13 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:23:07 +0000 (17:23 +0000)
This is to be consistent with normal man, and it looks soo much better
than nvim's built in soft wrapping.

nvim/lua/config/options.lua

index 60c4ad333a9190db1ae345a023aee63b5b377f13..547ed757586cba4f3b768b504217d0e2b6ce879c 100644 (file)
@@ -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