Преглед изворни кода

[Feature] Hide formatter.nvim tempfiles (#955)

not пре 4 година
родитељ
комит
9ed28bce96
4 измењених фајлова са 4 додато и 0 уклоњено
  1. 1 0
      lua/lang/lua.lua
  2. 1 0
      lua/lang/php.lua
  3. 1 0
      lua/lang/sh.lua
  4. 1 0
      lua/lang/terraform.lua

+ 1 - 0
lua/lang/lua.lua

@@ -22,6 +22,7 @@ M.format = function()
         exe = O.lang.lua.formatter.exe,
         args = O.lang.lua.formatter.args,
         stdin = not (O.lang.lua.formatter.stdin ~= nil),
+        tempfile_prefix = ".formatter",
       }
     end,
   }

+ 1 - 0
lua/lang/php.lua

@@ -31,6 +31,7 @@ M.format = function()
         exe = O.lang.php.formatter.exe,
         args = O.lang.php.formatter.args,
         stdin = not (O.lang.php.formatter.stdin ~= nil),
+        tempfile_prefix = ".formatter",
       }
     end,
   }

+ 1 - 0
lua/lang/sh.lua

@@ -25,6 +25,7 @@ M.format = function()
         exe = O.lang.sh.formatter.exe,
         args = O.lang.sh.formatter.args,
         stdin = not (O.lang.sh.formatter.stdin ~= nil),
+        tempfile_prefix = ".formatter",
       }
     end,
   }

+ 1 - 0
lua/lang/terraform.lua

@@ -17,6 +17,7 @@ M.format = function()
         exe = O.lang.terraform.formatter.exe,
         args = O.lang.terraform.formatter.args,
         stdin = not (O.lang.terraform.formatter.stdin ~= nil),
+        tempfile_prefix = ".formatter",
       }
     end,
   }