summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2025-03-27 01:33:32 +0000
committerTyler Davis <tyler@gluecode.net>2025-03-27 01:33:32 +0000
commitdcf6d1e6c53e301a897778404a87b0633d485e2d (patch)
tree2f8deb2417cad47973814d083fe6aef3537f5d3a
parent8feb05ecd983f2af130c3c12788c9b4e72f42024 (diff)
downloaddotfiles-dcf6d1e6c53e301a897778404a87b0633d485e2d.tar.gz
dotfiles-dcf6d1e6c53e301a897778404a87b0633d485e2d.zip
nvim: add textwrap for text, markdown
-rw-r--r--.config/nvim/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index ba9e15e..47f9091 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -38,6 +38,9 @@ vim.opt.number = true
-- Don't show the mode, since it's already in the status line
vim.opt.showmode = false
+vim.cmd([[autocmd FileType markdown set tw=72 wrap]])
+vim.cmd([[autocmd FileType text set tw=72 wrap]])
+
-- Sync clipboard between OS and Neovim.
-- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent.