From 7fb2e4ccb717fc11551a5076c691e2453aa6006a Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 24 Apr 2024 20:40:30 +0200 Subject: [PATCH] nvim: treefmt formatting using stdin --- home/config/nvim/plugins/formatter.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/config/nvim/plugins/formatter.fnl b/home/config/nvim/plugins/formatter.fnl index 30230a2..9846aae 100644 --- a/home/config/nvim/plugins/formatter.fnl +++ b/home/config/nvim/plugins/formatter.fnl @@ -18,8 +18,8 @@ ext-glob (.. "*." ext)] (if (vim.list_contains treefmt-exts ext-glob) {:command :treefmt - :args [tmp-filename] - :stdin false + :args [:--stdin tmp-filename] + :stdin true :cwd (conform-util.root_file [:flake.nix :flake.lock]) :require_cwd true} (= (vim.fn.executable fallback.command) 1)