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)]
(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)