From 0a16235cecdac7d740ab1820d7079a9f682d0f72 Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 27 Jul 2021 20:31:04 +0000 Subject: 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` --- lua/plugins.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index f03e8d2a..0fd477de 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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 -- cgit v1.2.3