py-requirements extra is now lazyloaded when entering a requirement.txt file

This commit is contained in:
sankalp committed 2024-01-29 17:20:04 +05:45
1 parent e1ab900ac0
commit bc91bbf093
5 files changed
+40 -37

No files matched your search

@@ -10,10 +10,7 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
biome = {
root_dir = require("lspconfig").util.root_pattern("biome.json"),
single_file_support = false,
},
biome = {},
},
},
},
@@ -40,7 +37,6 @@ return {
})
opts.formatters = {
cwd = require("conform.util").root_file({ "biome.json" }),
biome = {
condition = function(self, ctx)
return vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1]