✨ feat(nvim): add py-requirements extra
This commit is contained in:
parent
14d78e18b3
commit
fb352bd154
2 changed files with 21 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
||||||
"plugins.extras.editor.oil",
|
"plugins.extras.editor.oil",
|
||||||
"plugins.extras.editor.outline",
|
"plugins.extras.editor.outline",
|
||||||
"plugins.extras.editor.package-info",
|
"plugins.extras.editor.package-info",
|
||||||
|
"plugins.extras.editor.py-requirements",
|
||||||
"plugins.extras.editor.regex",
|
"plugins.extras.editor.regex",
|
||||||
"plugins.extras.editor.rest-client",
|
"plugins.extras.editor.rest-client",
|
||||||
"plugins.extras.editor.search-replace",
|
"plugins.extras.editor.search-replace",
|
||||||
|
|
20
.config/nvim/lua/plugins/extras/editor/py-requirements.lua
Normal file
20
.config/nvim/lua/plugins/extras/editor/py-requirements.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
return {
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = {
|
||||||
|
"MeanderingProgrammer/py-requirements.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
opts = function()
|
||||||
|
require("py-requirements").setup({})
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"requirements",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
opts = function(_, opts)
|
||||||
|
table.insert(opts.sources, { name = "py-requirements" })
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue