workspaces.nvim
vim-ctrlspace
workspaces.nvim | vim-ctrlspace | |
---|---|---|
11 | 13 | |
272 | 1,731 | |
- | 0.5% | |
4.8 | 5.2 | |
about 2 months ago | about 2 months ago | |
Lua | Vim Script | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
workspaces.nvim
-
Rename tab
`:tcd` into that project's folder. I'm using workspaces.nvim to create aliases for my project's folders, so I can simply do `:WorkspacesOpen MyProject`
-
olddirs.nvim: oldfiles, but for directories
workspaces.nvim.
Sharing a lightweight plugin I wrote yesterday which provides some functions for accessing previously used current working directories. I know that this is similar to some other "workspace" / "project" plugins which already exist, so I've pasted the motivation section from the README. >I work in a large monorepo and change my working directory depending on what part of the codebase I'm looking at to give my LSP (gopls) a chance and to improve the usefulness of fuzzy finding files. I want to change the current working directory back to a previously used one without having to configure a "project" or "workspace" beforehand. This requirement is not satisfied (as far as I can tell) by existing similar plugins: > - project.nvim > - telescope-project.nvim > - workspaces.nvim. > - neovim-session-manager > olddirs.nvim is very lightweight and doesn't provide any niceties (out of the box) like some of the above plugins, it's literally just :oldfiles for directories. > \ I say "out of the box" since some features like the searching or browsing of files inside a previous directory can be implemented by adding actions to the olddirs.nvim Telescope picker.
- Comment 1 thing in neovim (or plugins) that changed your life, but very few people know about
-
Selecting specific folders in a monorepo
i use workspaces for that, https://github.com/natecraddock/workspaces.nvim
-
Comparision, project.nvim vs. telescope-project.nvim
I use https://github.com/natecraddock/workspaces.nvim and their compatible session manager. I have not tried the other two but workspaces works well and has done nice integrations (including telescope).
-
I didn't know before that having multiple Neovim instances is bad
I use only one neovim instance and with the plugin https://github.com/natecraddock/workspaces.nvim I change between repositories.
-
Which, in your opinion, is the best session management plugin?
I'm biased, but my favorite is a combination of workspaces.nvim and sessions.nvim (I created both). Both are extremely simple frameworks meant to be customized to your needs. Not for everyone, but if you are looking for something simple its worth giving a look.
- How do you handle multiple projects/workspaces with Neovim?
-
Manage project local settings for a language server with lsp-zero
workspaces.nvim
vim-ctrlspace
-
How do you navigate different projects?
https://github.com/vim-ctrlspace/vim-ctrlspace is the main plugin I use to open files and jump between buffers. In terms of this plugin, a project is a "bookmark," and you can switch between them easily - each project is actually just a working directory. Then you can open files from the current project directory using fuzzy search. I use tabs to keep related buffers together. And one of strong points of ctrlspace is that it keeps buffer list separate per tab. In other words, each tab has its own list of buffers, so you can jump really quickly between them. Of course, you can search in all loaded buffers (like in :ls).
- Neovim workflow
-
How to avoid having six million buffers open
I thought it would be nice to have something like :ls but only for buffers of a current tab. There's a plugin that does exactly that: https://github.com/vim-ctrlspace/vim-ctrlspace. It supports fuzzy search of buffers (as well as files in your project), but I mostly use j/k in the buffer selection list. You can do browsing in a separate tab to keep those uninteresting buffers separate from everything else. I just no longer use :ls since it still contains a list of all buffers ever opened, and vim-ctrlspace buffer switching is much better. Though I sometimes still use :b filename.
-
How do you handle multiple projects/workspaces with Neovim?
Maybe this could fill your requirements: https://github.com/vim-ctrlspace/vim-ctrlspace
- Is there a way to restore your current session including all of the marks?
-
Favorite unfamous vim/neovim plugin?
I personally love vim-ctrlspace. I found out about it a few months ago, and since then, it's really one of the few plugins that I can't live without.
- How to have separate buffers for every tab and split?
-
How to handle multiple projects in a single instance
I used spacemacs for a few years and this problem was solved pretty neatly by projectile which basically filters all the buffer not in the current project. However it wasn't perfect and switch back to vim/tmux, but if for those who like this kind of workflow and don't want to use tmux (because for example they prefer a GUI version of vim), the vim plugin (ctrspace)(https://github.com/vim-ctrlspace/vim-ctrlspace) gives a similar workflow. I tried using but it wasn't for me.
-
Best way to implement a project like system?
Try vim-addon-local-vimrc to load a project specific vimrc or vim-ctrlspace to load session infos.
- How to make different buffers in different tabs?
What are some alternatives?
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
nvim-neoclip.lua - Clipboard manager neovim plugin with telescope integration
sessions.nvim - a simple session manager plugin
telescope-command-palette.nvim - Create key-bindings and watch them with telescope :telescope:
bufferline.nvim - A snazzy bufferline for Neovim
bufexplorer - BufExplorer Plugin for Vim
neovim-session-manager - A simple wrapper around :mksession.
fzf-folds.vim - Vim plugin that lets you fuzzy search for folds in a file
project-settings.nvim - Manage project local settings using a json file.
nui.nvim - UI Component Library for Neovim.
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
vim-prosession - Handle vim sessions like a pro