From b1673baf309700c21e3fe958f0cdf2d74db526d1 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 5 Dec 2024 16:05:07 -0600 Subject: [PATCH] neovim: wrap text in markdown files --- home/modules/tui/neovim/autocmds.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home/modules/tui/neovim/autocmds.nix b/home/modules/tui/neovim/autocmds.nix index 9761bf5..d6e1398 100644 --- a/home/modules/tui/neovim/autocmds.nix +++ b/home/modules/tui/neovim/autocmds.nix @@ -21,5 +21,15 @@ ]; command = "setlocal spell spelllang=en"; } + + # Enable wrap for some filetypes + { + event = "FileType"; + pattern = [ + "markdown" + ]; + command = "setlocal wrap linebreak"; + } ]; -} \ No newline at end of file +} +