nvim: [HACK] add isort to python non default formatters
parent
15dfb33122
commit
b0c16a0c41
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue