1
0
Fork 0

nvim: treefmt formatting using stdin

This commit is contained in:
Daniel Kempkens 2024-04-24 20:40:30 +02:00
parent 10b7754d41
commit 7fb2e4ccb7
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -18,8 +18,8 @@
ext-glob (.. "*." ext)] ext-glob (.. "*." ext)]
(if (vim.list_contains treefmt-exts ext-glob) (if (vim.list_contains treefmt-exts ext-glob)
{:command :treefmt {:command :treefmt
:args [tmp-filename] :args [:--stdin tmp-filename]
:stdin false :stdin true
:cwd (conform-util.root_file [:flake.nix :flake.lock]) :cwd (conform-util.root_file [:flake.nix :flake.lock])
:require_cwd true} :require_cwd true}
(= (vim.fn.executable fallback.command) 1) (= (vim.fn.executable fallback.command) 1)