mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-16 07:27:52 +02:00
Merge c540b9ada3
into 25abbf546d
This commit is contained in:
commit
07a8b4c60e
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,14 @@ return {
|
||||||
filetypes_include = {},
|
filetypes_include = {},
|
||||||
-- to fully override the default_config, change the below
|
-- to fully override the default_config, change the below
|
||||||
-- filetypes = {}
|
-- 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 = {
|
setup = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue