Neovim config updates

This commit is contained in:
2023-10-02 18:30:56 -04:00
parent 427fd1d063
commit f643b45432
6 changed files with 27 additions and 6 deletions

View File

@@ -4,16 +4,23 @@ return {
local util = require("formatter.util")
require("formatter").setup({
filetype = {
markdown = {
markdown = function()
return {
exe = "prettier",
args = {
"--stdin-filepath",
util.escape_path(util.get_current_buffer_file_path()),
"--line-width",
"100"
"--print-width",
"80",
"--prose-wrap",
"always",
"--parser",
"markdown"
},
stdin = true,
try_node_modules = true,
},
}
end,
["*"] = {
-- formatter for any / all file types.
require("formatter.filetypes.any").remove_trailing_whitespace