diff dot_config/nvim/lua/efm/python.lua @ 380:3b7ebcd563e1

Format config with lua-format
author zegervdv <zegervdv@me.com>
date Sat, 10 Apr 2021 11:26:56 +0200
parents 3b25f3aa7014
children 3f2b7b399dee
line wrap: on
line diff
--- a/dot_config/nvim/lua/efm/python.lua	Sat Apr 10 11:14:49 2021 +0200
+++ b/dot_config/nvim/lua/efm/python.lua	Sat Apr 10 11:26:56 2021 +0200
@@ -1,20 +1,17 @@
-local languages = require'efm/languages'
+local languages = require 'efm/languages'
 
 languages.python = {};
 
 if (vim.fn.executable('black') == 1) then
-  table.insert(languages.python, {
-    formatCommand = "black -",
-    formatStdin = true
-  })
+  table.insert(languages.python, { formatCommand = 'black -', formatStdin = true })
 end
 
 if (vim.fn.executable('flake8') == 1) then
   table.insert(languages.python, {
-    lintCommand = "flake8 --stdin-display-name ${INPUT} -",
+    lintCommand = 'flake8 --stdin-display-name ${INPUT} -',
     lintStdin = true,
     lintIgnoreExitCode = true,
-    lintFormats = {"%f:%l:%c: %m"}
+    lintFormats = { '%f:%l:%c: %m' },
   })
 end