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:
Rafael 2021-07-27 20:31:04 +00:00 committed by GitHub
parent 025cc3e684
commit 0a16235cec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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