aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-02-26 21:53:56 -0500
committertdro <tdro@users.noreply.github.com>2022-02-26 22:02:32 -0500
commited51f507da9452c1b35577baa1fd475df88dbef9 (patch)
tree36d52c7aa6ea3ec1c3e407b09bc0a052fd11db87
parent7d299753f5dd4c3ca31701bfa0c7339c702246ee (diff)
downloaddotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.tar.gz
dotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.tar.bz2
dotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.zip
.vimrc: Partial format html and markdown
-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