From b0c16a0c4172b1848287263549935ad1ab53d9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 26 Feb 2023 11:38:55 +0100 Subject: [PATCH] nvim: [HACK] add isort to python non default formatters --- modules/programs/nvim/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/programs/nvim/init.lua b/modules/programs/nvim/init.lua index a282e3e..078cbd2 100644 --- a/modules/programs/nvim/init.lua +++ b/modules/programs/nvim/init.lua @@ -216,6 +216,9 @@ require("formatter").setup({ alejandra = { require("formatter.filetypes.nix").alejandra, }, + isort = { + require("formatter.filetypes.python").isort, + }, -- Use the special "*" filetype for defining formatter configurations on -- any filetype @@ -237,6 +240,7 @@ end, { complete = function() local languages = { nix = { "alejandra" }, + python = { "isort" }, } return languages[vim.bo.filetype] or {} end,