Closed EhsanAramide closed 1 year ago
[Answer] I found the problem. Based on autoload settings, option 'stdin': 1
has been set by default. when we pass our settings or definitions to neoformat, based on these lines, it will replace the default definition with our definition that we had set, so we can add 'stdin': 1
to our definition.
vim.g.neoformat_fortran_fprettify = {
exe = "fprettify",
args = {"--silent", "-i 4"},
stdin = 1
}
vim.g.neoformat_enabled_fortran = {"fprettify"}
I use
neoformat
with these settings:but when I run
:Neoformat
or other derivatives like:Neoformat! fortran
or:Neofortran fprettify
the buffer is made empty.example 1:
then
:Neoformat
command makes the buffer empty but when I run!fprettify --silent -i 4 <file-name>
everything will be fine!example 2:
I run
!fprettify --silent -i 4 <file-name>