This commit is contained in:
Sedana Yoga 2025-07-12 18:55:48 +08:00 committed by GitHub
commit 07a8b4c60e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,14 @@ return {
filetypes_include = {},
-- to fully override the default_config, change the below
-- filetypes = {}
root_dir = function(fname)
local node_modules = vim.fs.dirname(vim.fs.find("node_modules", { path = fname, upward = true })[1])
if not node_modules then
return nil
else
return node_modules
end
end,
},
},
setup = {