diff options
author | Rafael <[email protected]> | 2021-07-27 20:31:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-27 16:31:04 -0400 |
commit | 0a16235cecdac7d740ab1820d7079a9f682d0f72 (patch) | |
tree | 89299585f3bdbca04283f1992a923e71b741b87f | |
parent | 025cc3e68464ea8ce4ba4acafe9bd86c38de5653 (diff) |
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`
-rw-r--r-- | lua/plugins.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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 |