py-requirements extra is now lazyloaded when entering a requirement.txt file
This commit is contained in:
1 parent
e1ab900ac0
commit
bc91bbf093
5 files changed
+40
-37
No files matched your search
@@ -22,10 +22,13 @@ local inlayHints = {
|
||||
}
|
||||
|
||||
local function denoConfigExists()
|
||||
local root = require("lazyvim.util.root").get() .. "/deno.json"
|
||||
local configs = { "deno.json", "deno.jsonc" }
|
||||
local root = require("lazyvim.util.root").get()
|
||||
|
||||
if vim.fn.filereadable(root) == 1 then
|
||||
return true
|
||||
for _, config in ipairs(configs) do
|
||||
if vim.fn.filereadable(root .. "/" .. config) == 1 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
@@ -77,9 +80,7 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
denols = {
|
||||
root_dir = require("lspconfig").util.root_pattern("deno.json", "deno.jsonc", "deno.lock"),
|
||||
},
|
||||
denols = {},
|
||||
},
|
||||
setup = {
|
||||
tsserver = function(_, opts)
|
||||
|
||||
Reference in new issue
Block a user