workspaces.nvim
auto-session
workspaces.nvim | auto-session | |
---|---|---|
11 | 32 | |
277 | 1,079 | |
- | - | |
4.8 | 7.1 | |
2 months ago | 14 days ago | |
Lua | Lua | |
MIT License | 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
auto-session
-
If statement for closing alpha.nvim window only if it's open on session save
The plugins are: https://github.com/goolord/alpha-nvim and https://github.com/rmagatti/auto-session
-
Auto-Session Removes modified buffers
I use auto-session for session management and session-lens telescope extension for switching the sessions. When I switch to a different session, auto-session clears all buffers from my current session, including the modified ones, without warning. I'm wondering if there are any ways to prevent losing my changes. For instance, can I save the modified buffers in the session and load them on session restore, or configure auto-session to give me a warning before switching to a new session if there are unsaved changes? Alternatively, is there a way to use Telescope to display a list of recently modified buffers, so that I can review them before switching sessions and take appropriate action?
-
How to use neovim as a server?
buffers: I open and close nvim instances all day long, using https://github.com/rmagatti/auto-session (or one of the many other session management plugins), it saves my buffers on a per git branch basis, so I lose nothing. nvim opens in less than a second, so this is no burden at all.
-
Has anyone had nvim-cmp stop working after a while?
Yes, I use rmagatti/auto-session with some gnarly hacks to save a subset of window options, a per-session colorscheme, and some other wacky stuff so it stays 99.9% the same between sessions.
- is there is a session manager plugin ?
-
How to get Nvim to remember last open buffers, splits and cursor position
The correct one is : auto-session (I edited the mistake in the message above)
-
remember-me: A plugin that (sort of) handles your vim sessions.
auto-session ?
-
Opening neovim lua config files changes pwd to the lua subfolder
I'm also using auto-session and nvim-tree which can both interact with the session.
-
Which file browser do you use ?
Finally, to save sessions and move through them, check: auto-session
-
Remember open buffers per project?
Yes, for this purpose, I'm using rmagatti/auto-session
What are some alternatives?
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
neovim-session-manager - A simple wrapper around :mksession.
sessions.nvim - a simple session manager plugin
tabby.nvim - A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
bufferline.nvim - A snazzy bufferline for Neovim
nvim-reload - Plugin to easily reload your Neovim config
git-worktree.nvim
project-settings.nvim - Manage project local settings using a json file.
bracey.vim - live edit html, css, and javascript in vim
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
telescope-project.nvim