vim-session
workspaces.nvim
vim-session | workspaces.nvim | |
---|---|---|
5 | 11 | |
964 | 272 | |
- | - | |
0.0 | 4.8 | |
almost 2 years ago | about 2 months ago | |
VimL | Lua | |
- | 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.
vim-session
-
Vim After 15 Years
https://github.com/xolox/vim-session
I actually have in normal mode ,ss for save session and ,so for opening them. Central location of session dirs and that's it. Save session saves everything from files open, positions, tabs, you name it.
-
Which, in your opinion, is the best session management plugin?
I'm looking to switch from vim-session to a Lua based session management plugin (i.e. :mksession wrapper). In awesome-neovim it looks like there are a couple of alternatives. I have relatively simple needs: I want a command for manually creating a new session, and automatic saving of an opened sesion when I quit Neovim. Bonus points for a built-in Telescope session picker, but I can always use (telescope_sessions_picker.nvim) otherwise. Do you guys have any advice?
-
Can you isolate buffers to a specific tab?
You can use sessions to switch between different projects. They store your tabs, buffers, etc. Check out :help mksession. I personally use vim-session which is a wrapper around mksession which allows you to use it more lazily.
-
How to handle working with multiple directories?
Check out :help :mksession. There's also a great plugin called vim-session that is a wrapper around :mksession making it easier to use, that adds commands like :SaveSession and :OpenSession that you can tab-complete to choose between all your saved sessions.
-
TIL - what is your most recent vim discovery?
I started seriously using sessions a couple of months ago and it's awesome. Although the built in :mksession works I like to use vim-session which is a wrapper for :mksession that adds stuff like auto saving sessions on exit etc which I love.
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
What are some alternatives?
vim-startify - :link: The fancy start screen for Vim.
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
telescope-project.nvim
sessions.nvim - a simple session manager plugin
telescope_sessions_picker.nvim
bufferline.nvim - A snazzy bufferline for Neovim
possession.nvim - Flexible session management for Neovim.
neovim-session-manager - A simple wrapper around :mksession.
vim-tabs - Vim plugin which helps you to use tabs correctly and productively
project-settings.nvim - Manage project local settings using a json file.
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config