view dot_config/nvim/lua/efm/lua.lua @ 386:82155064643e

Apply formatting synchronously
author Zeger Van de Vannet <zegervdv@me.com>
date Mon, 10 May 2021 15:02:32 +0200
parents 2a8195e14cad
children
line wrap: on
line source

local languages = require 'efm/languages'

languages.lua = {}

if (vim.fn.executable('lua-format') == 1) then
  table.insert(languages.lua, {
    formatCommand = "lua-format -c ~/.config/lua-format/conf.yml",
    formatStdin = true
  })
end