diff options
author | tdro <tdro@users.noreply.github.com> | 2022-02-26 21:53:56 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-02-26 22:02:32 -0500 |
commit | ed51f507da9452c1b35577baa1fd475df88dbef9 (patch) | |
tree | 36d52c7aa6ea3ec1c3e407b09bc0a052fd11db87 | |
parent | 7d299753f5dd4c3ca31701bfa0c7339c702246ee (diff) | |
download | dotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.tar.gz dotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.tar.bz2 dotfiles-ed51f507da9452c1b35577baa1fd475df88dbef9.zip |
.vimrc: Partial format html and markdown
-rw-r--r-- | .config/prettier/config.yaml | 1 | ||||
-rw-r--r-- | .vimrc | 2 |
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. @@ -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 |