aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/prettier/config.yaml1
-rw-r--r--.vimrc2
2 files changed, 3 insertions, 0 deletions
diff --git a/.config/prettier/config.yaml b/.config/prettier/config.yaml
index 2aa8b6d..1c2399f 100644
--- a/.config/prettier/config.yaml
+++ b/.config/prettier/config.yaml
@@ -7,3 +7,4 @@ singleQuote: false # Use double quotes instead of single quotes.
tabWidth: 2 # Specify the number of spaces per indentation-level.
trailingComma: es5 # Print trailing commas
useTabs: false # Indent lines with tabs instead of spaces.
+proseWrap: always # Always wrap prose in markdown.
diff --git a/.vimrc b/.vimrc
index 1dcc497..8b77153 100644
--- a/.vimrc
+++ b/.vimrc
@@ -329,6 +329,8 @@ augroup AutoCommands
autocmd FileType nix set formatprg=nixfmt
autocmd FileType sh set formatprg=shfmt\ -
autocmd FileType javascript set formatprg=prettier\ --parser\ babel\ --stdin-filepath\ %
+ autocmd FileType html set formatprg=prettier\ --parser\ html\ --stdin-filepath\ %
+ autocmd FileType markdown set formatprg=prettier\ --parser\ markdown\ --stdin-filepath\ %
" Set file types.
autocmd BufRead,BufNewFile *.nims set filetype=nim