adding line wrapping to nvim

This commit is contained in:
2026-03-10 09:45:53 +01:00
parent d124dc750e
commit d726b1b5f9
3 changed files with 14 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.wrap = true
-- vim.opt.colorcolumn = "120"
vim.opt.breakindent = true -- Indent wrapped lines to match indent of first line
vim.opt.linebreak = true -- Break lines at word boundaries, not mid-word
vim.opt.showbreak = "" -- Show indicator for wrapped lines