diff --git a/home/user/.config/nvim/lua/base/plugins/formatter.lua b/home/user/.config/nvim/lua/base/plugins/formatter.lua new file mode 100644 index 0000000..beb4af1 --- /dev/null +++ b/home/user/.config/nvim/lua/base/plugins/formatter.lua @@ -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 +}