about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-04 02:03:23 +0900
committersefidel <contact@sefidel.net>2023-02-04 02:03:23 +0900
commit1443dc83db25873e6c6259383ef725a09fcd2017 (patch)
tree13a74328b7f158f18c41d1da95b78aca8f250b86 /fnl/nvrc
parent730aee578ed638fbec4da0c330927069c8eac44b (diff)
downloadnvimrc-1443dc83db25873e6c6259383ef725a09fcd2017.tar.gz
nvimrc-1443dc83db25873e6c6259383ef725a09fcd2017.zip
feat(events): wrap lines on markdown and mail files
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/events.fnl6
1 files changed, 6 insertions, 0 deletions
diff --git a/fnl/nvrc/events.fnl b/fnl/nvrc/events.fnl
index 64559dd..d66c604 100644
--- a/fnl/nvrc/events.fnl
+++ b/fnl/nvrc/events.fnl
@@ -42,3 +42,9 @@
           (au! TermOpen * (setl! signcolumn :no))
           ;; Disables colorcolumn on terminal buffers
           (au! TermOpen * (setl! colorcolumn [])))
+
+(ag! markdown-wrap-line
+     (au! FileType markdown (setl! textwidth 80)))
+
+(ag! mail-wrap-line
+     (au! FileType mail (setl! textwidth 80)))