Skip to content

Commit

Permalink
feat(project): add ProjectMgr plugin (#372)
Browse files Browse the repository at this point in the history
* feat(utility): added ProjectMgr plugin

wip

deleted sessionvim

* fix(project): Use VeryLazy instead of lazy = false in ProjectMgr conf
  • Loading branch information
KenroLe authored and mehalter committed Jul 6, 2023
1 parent 952529a commit dca1596
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lua/astrocommunity/project/projectmgr-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# projectmgr.nvim

Quickly switch between projects and automate startup tasks.

**Repository:** <https://github.com/charludo/projectmgr.nvim>

### 🦑 Usage with `telescope.nvim`

`:ProjectMgr` (or <leader>P) toggles a telescope picker with your projects. The telescope preview displays information about your project
and its current git state.
The following actions and keybinds are available:

| Key | Action |
| :---------------- | :------------------------------------------------------------------------------------------------- |
| `<CR>` | Open the project under your cursor |
| `<C-a>` | Add a project. You will be asked for a name, a path, and optionally startup and shutdown commands. |
| `<C-d>` / `<C-x>` | Delete project under your cursor |
| `<C-e>` / `<C-u>` | Edit the project under your cursor |
| `<C-q>` / `<ESC>` | Close the window without doing anything |
| `<leader>P` | Open the ProjectMgr panel |

### 🦑 Usage without `telescope.nvim`

**projectmgr** comes with a fallback window in case you aren't using `telescope.nvim`. The same actions are available.
The keybinds are slightly different: `<C-a>` is replaced by just `a`, `<C-q>` becomes just `q`, and so on.
7 changes: 7 additions & 0 deletions lua/astrocommunity/project/projectmgr-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
"charludo/projectmgr.nvim",
event = "VeryLazy",
keys = {
{ "<leader>P", "<cmd>ProjectMgr<cr>", desc = "Open ProjectMgr panel" },
},
}

0 comments on commit dca1596

Please sign in to comment.