mhartington/formatter.nvim

Error when use :Format command

Closed this issue · 1 comments

OS: macOS Monterey 12.4

My packer 'formatter.nvim' configuration is:

   use {
      "mhartington/formatter.nvim",
      cmd = {"Format", "FormatWrite"},
      config = function ()
         require("formatter").setup {
            logging = true,
            log_level = vim.log.levels.WARN,
            filetype = {
               haskell = {
                  function ()
                     return {
                        exe = "stylish-haskell",
                        stdin = true,
                     }
                  end,
               },
               lua = {
                  require("formatter.filetypes.lua").stylua,
               },
            },
         }
      end,
   }

But when I use :Format on any type of file including lua and haskell I get error below:
Снимок экрана 2022-07-15 в 12 22 54

The bug accidentally disappeared after about 4 hours ¯\(ツ)