Mercurial > dotfiles
view dot_config/nvim/lua/efm/python.lua @ 359:01ed548d66b7
Add kitty marker for errors
Press <F1> to mark 'error' in red
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 11 Mar 2021 18:24:29 +0100 |
parents | 3b25f3aa7014 |
children | 3b7ebcd563e1 |
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