From 732544a6bc6db9df0c6cde39720b3a80c83f25f4 Mon Sep 17 00:00:00 2001 From: Thomas Alcala Schneider Date: Fri, 21 Jul 2023 16:22:27 +0200 Subject: [PATCH] fix: desperate attempt at wrapping --- init.lua | 5 ++++- lua/custom/plugins/init.lua | 2 ++ lua/custom/plugins/options.lua | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index dfce5362..6899a639 100644 --- a/init.lua +++ b/init.lua @@ -206,7 +206,10 @@ require('lazy').setup({ { import = 'custom.plugins' }, }, { concurrency = 10, - }) +}) + +vim.o.wrap = true +vim.o.relativenumber = true -- [[ Setting options ]] -- See `:help vim.o` diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..7b9e6c9c 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,6 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information +vim.o.wrap = true + return {} diff --git a/lua/custom/plugins/options.lua b/lua/custom/plugins/options.lua index 20a4f4f8..60791018 100644 --- a/lua/custom/plugins/options.lua +++ b/lua/custom/plugins/options.lua @@ -46,6 +46,7 @@ opt.updatetime = 200 -- Save swap file and trigger CursorHold opt.wildmode = 'longest:full,full' -- Command-line completion mode opt.winminwidth = 5 -- Minimum window width -- opt.wrap = false -- Disable line wrap +opt.wrap = true if vim.fn.has 'nvim-0.9.0' == 1 then opt.splitkeep = 'screen'