43 lines
1,005 B
Lua
43 lines
1,005 B
Lua
return {
|
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
|
{
|
|
"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")
|
|
return opts
|
|
end,
|
|
},
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
if type(opts.ensure_installed) == "table" then
|
|
vim.list_extend(opts.ensure_installed, { "requirements" })
|
|
end
|
|
end,
|
|
},
|
|
{
|
|
"MeanderingProgrammer/py-requirements.nvim",
|
|
event = {
|
|
"BufRead requirements.txt",
|
|
},
|
|
dependencies = {
|
|
{ "nvim-lua/plenary.nvim" },
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
dependencies = {},
|
|
opts = function(_, opts)
|
|
table.insert(opts.sources, { name = "py-requirements" })
|
|
end,
|
|
},
|
|
},
|
|
opts = {},
|
|
},
|
|
{
|
|
"luckasRanarison/nvim-devdocs",
|
|
optional = true,
|
|
ensure_installed = {
|
|
"python-3.11",
|
|
},
|
|
},
|
|
}
|