mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-30 14:49:43 +02:00
include package-lock.json
& package.json
in root patterns (#1133)
* Just adds package.json and package-lock.json for the root patterns of vim-rooter * The other ones are the default patterns, see `:help g:rooter_patterns`
This commit is contained in:
parent
025cc3e684
commit
0a16235cec
1 changed files with 10 additions and 0 deletions
|
@ -140,6 +140,16 @@ return {
|
|||
"airblade/vim-rooter",
|
||||
config = function()
|
||||
vim.g.rooter_silent_chdir = 1
|
||||
vim.g.rooter_patterns = {
|
||||
".git",
|
||||
"_darcs",
|
||||
".hg",
|
||||
".bzr",
|
||||
".svn",
|
||||
"Makefile",
|
||||
"package.json",
|
||||
"package-lock.json",
|
||||
}
|
||||
if lvim.builtin.rooter.on_config_done then
|
||||
lvim.builtin.rooter.on_config_done()
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue