init
This commit is contained in:
19
nvim/lua/plugins/extras/formatting/ruff.lua
Normal file
19
nvim/lua/plugins/extras/formatting/ruff.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft.python = opts.formatters_by_ft.python or {}
|
||||
table.insert(opts.formatters_by_ft.python, "ruff_format")
|
||||
table.insert(opts.formatters_by_ft.python, "ruff_fix")
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"ruff",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user