Mercurial > dotfiles
view dot_config/nvim/lua/efm/python.lua @ 398:aea0cbb82522
Format config.lua
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 20 Jun 2021 09:55:49 +0200 |
parents | 3f2b7b399dee |
children |
line wrap: on
line source
local languages = require 'efm/languages' languages.python = {}; if (vim.fn.executable('black') == 1) then 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} -', -- lintStdin = true, -- lintIgnoreExitCode = true, -- lintFormats = { '%f:%l:%c: %m' }, -- }) -- end