feat(nvim): add py-requirements extra

This commit is contained in:
sankalp committed 2024-01-29 06:14:37 +05:45
1 parent 3528730875
commit aea2e3df01
4 files changed
+50 -9

No files matched your search

@@ -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,
}
@@ -4,6 +4,7 @@ return {
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"php",
"phpdoc",
})
end,
},
@@ -12,6 +13,8 @@ return {
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"phpactor",
"php-cs-fixer",
"phpcs",
})
end,
},
@@ -23,6 +26,14 @@ return {
},
},
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.php = opts.linters_by_ft.php or {}
table.insert(opts.linters_by_ft.php, "phpcs")
return opts
end,
},
{
"mfussenegger/nvim-dap",
optional = true,
@@ -56,6 +67,14 @@ return {
},
},
},
{
"stevearc/conform.nvim",
opts = function(_, opts)
opts.formatters_by_ft.php = opts.formatters_by_ft.php or {}
table.insert(opts.formatters_by_ft.php, "php_cs_fixer")
return opts
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,