diff options
| author | bh <qn+git@excalibur.computer> | 2025-11-19 19:43:49 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2025-11-19 19:43:49 +0800 |
| commit | 95065165f37331ac62f9270c1dd7d1ac26f9c3f9 (patch) | |
| tree | fb822e070a8ef753d44acd2aeae35b475ce65756 | |
| parent | 10e476e0f97d0a7c8d359aba270f68066a332583 (diff) | |
Improved line breaks and wrapping
| -rw-r--r-- | init.lua | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
