mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: migrate to auto-lint and auto-conform
This commit is contained in:
parent
eace6b6674
commit
ff62c20795
11 changed files with 38 additions and 55 deletions
|
@ -117,14 +117,11 @@ if pcode.active_python_config then
|
|||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
"pojokcodeid/auto-conform.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = function(_, opts)
|
||||
local package = "black"
|
||||
require("user.utils.masoncfg").try_install("flake8")
|
||||
require("user.utils.masoncfg").try_install("black")
|
||||
require("user.utils.masoncfg").try_install("debugpy")
|
||||
opts.formatters_by_ft.python = { package }
|
||||
vim.list_extend(opts.ensure_installed, { "flake8", "black", "debugpy" })
|
||||
opts.formatters_by_ft.python = { "black" }
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue