]> git.madduck.net Git - etc/lazyvim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

set textwidth for markdown
authormartin f. krafft <madduck@madduck.net>
Fri, 2 May 2025 18:29:51 +0000 (20:29 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 6 Aug 2025 09:57:17 +0000 (11:57 +0200)
.config/lazyvim/after/ftplugin/markdown.lua

index 37526e98ae2701f24686409b7c15d03c4f5df0ba..304a8520b99beb06d05df3397279a4058660454d 100644 (file)
@@ -1 +1,6 @@
+local i, _ = string.find(vim.bo.filetype, "mail")
+if not i then
+  vim.opt_local.textwidth = 80
+end
+
 vim.g.table_mode_corner = "|"