From 95cafcddcd0504a9e4281531731d1e7bcf381475 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Mon, 6 Sep 2021 06:30:02 +0200 Subject: [PATCH] fixed prettier for special file names --- lua/plugins/formatter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/formatter.lua b/lua/plugins/formatter.lua index 29d1d66..c520707 100644 --- a/lua/plugins/formatter.lua +++ b/lua/plugins/formatter.lua @@ -1,7 +1,7 @@ local prettierd = function() return { exe = "prettierd", - args = {vim.api.nvim_buf_get_name(0)}, + args = {"'" .. vim.api.nvim_buf_get_name(0) .. "'"}, stdin = true } end