feat(nvim): pep8 formatter

This commit is contained in:
TheK4n 2023-10-20 09:42:45 +03:00 committed by thek4n
parent 9d2619fbaf
commit d86ce731fa

View File

@ -0,0 +1,22 @@
return {
"mhartington/formatter.nvim",
config = function()
local util = require "formatter.util"
require("formatter").setup({
filetype = {
python = {
function()
return {
exe = "autopep8",
args = {
util.escape_path(util.get_current_buffer_file_path()),
},
stdin = true,
}
end
}
}
})
end
}