From b0d8450f595dac610bf99e890928d5d734720b4f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 18 Jun 2024 23:54:04 -0500 Subject: [PATCH] feat(nvim): enable `wrap` by default --- users/price/dots/.config/nvim/lua/core/options.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/core/options.lua b/users/price/dots/.config/nvim/lua/core/options.lua index 2448b550..c0e71fc2 100755 --- a/users/price/dots/.config/nvim/lua/core/options.lua +++ b/users/price/dots/.config/nvim/lua/core/options.lua @@ -31,14 +31,18 @@ M.setup = function() opt.tabstop = 4 opt.shiftwidth = 4 opt.smartindent = true - opt.breakat = " \t;," - opt.formatlistpat = [[^\s*\(-\|\d\.\)\s*]] - opt.breakindent = true - opt.breakindentopt = "list:2" opt.expandtab = true opt.smarttab = true opt.shiftround = true + -- Wrapping behavior + opt.wrap = true + opt.breakat = " \t;," + opt.linebreak = true + opt.formatlistpat = [[^\s*\(-\|\d\.\)\s*]] + opt.breakindent = true + opt.breakindentopt = "list:2" + -- Search settings opt.hlsearch = true opt.incsearch = true