~gpanders/dotfiles

7809062a7e8e92a1dc6f16d7794d48c21fa24ea7 — Gregory Anders a month ago 89d168b
nvim: use flake8 linter for Python
1 files changed, 2 insertions(+), 1 deletions(-)

M .config/nvim/plugin/lint.vim
M .config/nvim/plugin/lint.vim => .config/nvim/plugin/lint.vim +2 -1
@@ 10,9 10,10 @@ lint.linters_by_ft = {
    ["vim"] = { "vint" },
    ["lua"] = { "luacheck" },
    ["nix"] = { "nix" },
    ["python"] = { "flake8" },
}

vim.cmd("autocmd! lint BufWritePost * lua require('lint').try_lint()")
vim.api.nvim_command("autocmd! lint BufWritePost * lua require('lint').try_lint()")
.
endfunction