From f360b0af314a78526b2707cbfabd9fc23d9536f9 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Mon, 9 Aug 2021 11:58:27 -0500 Subject: [PATCH] Add custom projections --- nvim/projections.vimrc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nvim/projections.vimrc diff --git a/nvim/projections.vimrc b/nvim/projections.vimrc new file mode 100644 index 0000000..f31a2eb --- /dev/null +++ b/nvim/projections.vimrc @@ -0,0 +1,32 @@ +let g:rails_projections = { + \ "config/*": { "command": "config" }, + \ "config/application.rb": { "command": "config" }, + \ "spec/factories/*_factory.rb": { "command": "factory" }, + \ "spec/factories/factories.rb": { "command": "factory" }, + \ "app/javascript/Main.elm": { "command": "elm" }, + \ "app/javascript/packs/*.elm": { "command": "elm" }, + \ "app/javascript/packs/*.js": { "command": "pack", "alternate": "app/javascript/packs/{}.spec.js" }, + \ "app/javascript/packs/*.spec.js": { "command": "packspec", "alternate": "app/javascript/{}.js" }, + \ "app/javascript/src/*.js": { "command": "pack", "alternate": "app/javascript/src/{}.spec.js" }, + \ "app/javascript/src/*.spec.js": { "command": "packspec", "alternate": "app/javascript/{}.js" }, + \ "app/javascript/packs/*.jsx": { "command": "pack" }, + \ "app/javascript/packs/application.js": { "command": "pack" }, + \ "app/javascript/*.vue": { "command": "vue", "alternate": "app/javascript/{}.spec.js" }, + \ "app/javascript/*.spec.js": { "command": "vuespec", "alternate": "app/javascript/{}.vue" }, + \ "app/javascript/*.css": { "command": "packstylesheet" }, + \ "app/javascript/*.scss": { "command": "packstylesheet" }, + \ "app/javascript/*.sass": { "command": "packstylesheet" }, + \ "app/javascript/*.js": { "command": "packjavascript" }, + \ "app/javascript/*.coffee": { "command": "packjavascript" }, + \ "app/decorators/*_decorator.rb": { "command": "decorator" }, + \ "app/presenters/*.rb": { "command": "presenter" }, + \ "app/models/concerns/*.rb": { "command": "concern" }, + \ "app/controllers/concerns/*.rb": { "command": "concern" }, + \ "features/*.feature": { "command": "feature" }, + \ "features/support/env.rb": { "command": "feature" }, + \ "features/step_definitions/*_steps.rb": { "command": "step" }, + \ "spec/acceptance/*_spec.rb": { "command": "feature" }, + \ "spec/mailers/previews/*_preview.rb": { "command": "preview" }, + \ "bin/*": { "command": "bin" }, + \ "*.md": { "command": "doc" } + \}