summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 37670a4..bead95b 100644
--- a/init.lua
+++ b/init.lua
@@ -54,6 +54,20 @@ vim.opt.listchars = {
nbsp = "␣",
}
+-- Enable wrapping
+vim.opt.wrap = true
+
+-- Break lines at word boundaries
+vim.opt.linebreak = true
+
+-- Prefix shown on wrapped lines
+vim.opt.showbreak = "↳ "
+
+-- Indent wrapped lines to match indentation
+vim.opt.breakindent = true
+
+-- (Optional) fine-tune breakindent behavior
+-- vim.opt.breakindentopt = "shift:2"
-- Line Numbers
vim.wo.number = true