From d4fa5c4920659a88fc89c32029556e12b8556630 Mon Sep 17 00:00:00 2001 From: Tom Praschan <13141438+tom-anders@users.noreply.github.com> Date: Fri, 4 Feb 2022 13:52:24 +0100 Subject: set wrap only for the startup buffer (#22) --- lua/startup/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index fc3cabe..0ebde8e 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -510,7 +510,7 @@ function U.set_buf_options() local tab_line = vim.api.nvim_get_option("showtabline") set_buf_opt(0, "bufhidden", "wipe") set_buf_opt(0, "buftype", "nofile") - vim.cmd([[set wrap]]) + vim.cmd([[setlocal wrap]]) if settings.options.disable_statuslines then vim.opt.laststatus = 0 vim.opt.showtabline = 0 -- cgit v1.2.3