♻️ refactor(nvim): move pyrequirements extra to the python extended extra
This commit is contained in:
parent
3ec434d9a3
commit
025725ecd0
2 changed files with 25 additions and 24 deletions
|
@ -1,24 +0,0 @@
|
||||||
return {
|
|
||||||
"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 = function()
|
|
||||||
require("py-requirements").setup({})
|
|
||||||
require("nvim-treesitter.configs").setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"requirements",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
|
@ -8,6 +8,31 @@ return {
|
||||||
return opts
|
return opts
|
||||||
end,
|
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",
|
"luckasRanarison/nvim-devdocs",
|
||||||
optional = true,
|
optional = true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue