63 lines
1.6 KiB
Lua
63 lines
1.6 KiB
Lua
return {
|
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
|
{ import = "lazyvim.plugins.extras.lang.python-semshi" },
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
ruff_lsp = {
|
|
handlers = {
|
|
["textDocument/publishDiagnostics"] = function() 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 = {},
|
|
-- stylua: ignore
|
|
keys = {
|
|
{ "<leader>ppu", function() require("py-requirements").upgrade() end, desc = "Update Package" },
|
|
{ "<leader>ppi", function() require("py-requirements").show_description() end, desc = "Package Info" },
|
|
{ "<leader>ppa", function() require("py-requirements").upgrade_all() end, desc = "Update All Packages" },
|
|
},
|
|
},
|
|
{
|
|
"folke/which-key.nvim",
|
|
opts = {
|
|
defaults = {
|
|
["<leader>p"] = { name = " packages/dependencies" },
|
|
["<leader>pp"] = { name = "python" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"luckasRanarison/nvim-devdocs",
|
|
optional = true,
|
|
ensure_installed = {
|
|
"python-3.11",
|
|
},
|
|
},
|
|
}
|