A parachute dropping a crate # dropship.nvim Your neovim tabs, dropshipped into your projects
# How it works 1. Configure the plugin with either a table containing drop location or a path to a lua file that returns that. 2. Setup keybinds you might want to use dropship with 3. Profit! **Using a pre-baked list of drop-locations**: ```lua { "ChausseBenjamin/dropship.nvim", dependencies = "nvim-telescope/telescope.nvim", opts = { drop_locations = { { "Projects", "~/Workspace" }, { "Neovim Config", "~/.config/nvim" }, { "University", "~/Documents/school/university/current_semester" }, }, }, keys = { { "dt", function() require("dropship").dropship_newtab() end, mode = "n", desc = "[D]ropship in a new [T]ab", }, { "dh", function() require("dropship").dropship_current() end, mode = "n", desc = "[D]ropship right [H]ere", }, }, cmd = { "Dropship", "DropshipNewTab", } } ``` **Using a lua file for drop-locations**: In order to have a single source of truth for my shortcuts, I have a script that generates shortcuts for most of my apps [in my dotfiles][1]. This type of solution makes sense for me to keep all my shortcuts in sync. ```lua { "ChausseBenjamin/dropship.nvim", dependencies = "nvim-telescope/telescope.nvim", opts = { drop_locations = "~/.cache/droplist.lua" }, -- Same as above for the rest... } ``` And the `droplist.lua` would then look like the following: ```lua return { { "Projects", "~/Workspace" }, { "Neovim Config", "~/.config/nvim" }, { "University", "~/Documents/school/university/current_semester" }, } ``` [1]: https://github.com/ChausseBenjamin/dotfiles/blob/master/.local/bin/shortcutgen