From 79229a2f230b1407becc9e2c5bf16f79fb5786c5 Mon Sep 17 00:00:00 2001 From: psychhim Date: Sun, 19 Oct 2025 01:01:50 +0530 Subject: [PATCH] Add: line wrap. --- init.lua | 3 +++ lua/plugins/custom/filetree.lua | 2 +- lua/plugins/custom/telescope.lua | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index f0201c8..d0e22e6 100644 --- a/init.lua +++ b/init.lua @@ -283,6 +283,9 @@ require('lazy').setup({ -- [[ Setting options ]] -- See `:help vim.o` +-- Line wrap +vim.opt.wrap = true + -- Set highlight on search vim.o.hlsearch = false diff --git a/lua/plugins/custom/filetree.lua b/lua/plugins/custom/filetree.lua index 1f5f5bd..207293f 100644 --- a/lua/plugins/custom/filetree.lua +++ b/lua/plugins/custom/filetree.lua @@ -153,7 +153,7 @@ return { signcolumn = 'yes', -- show sign column cursorline = false, -- no cursorline by default foldenable = true, -- enable folds - wrap = false, -- no line wrap + wrap = true, -- line wrap spell = false, -- disable spell } local win = vim.api.nvim_get_current_win() diff --git a/lua/plugins/custom/telescope.lua b/lua/plugins/custom/telescope.lua index ecd7776..d915713 100644 --- a/lua/plugins/custom/telescope.lua +++ b/lua/plugins/custom/telescope.lua @@ -108,7 +108,7 @@ return { signcolumn = 'yes', -- show sign column cursorline = false, -- no cursorline by default foldenable = true, -- enable folds - wrap = false, -- no line wrap + wrap = true, -- line wrap spell = false, -- disable spell } local win = vim.api.nvim_get_current_win()