nvim: treefmt formatting using stdin
This commit is contained in:
parent
10b7754d41
commit
7fb2e4ccb7
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue