sniprun
toggleterm.nvim
sniprun | toggleterm.nvim | |
---|---|---|
27 | 89 | |
1,353 | 3,732 | |
- | - | |
8.7 | 8.2 | |
5 days ago | 16 days ago | |
Rust | Lua | |
MIT License | GNU General Public License v3.0 only |
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.
sniprun
-
Compile and run inside nvim
If you want to compile/run specific lines of code (not the whole project), my plugin sniprun should be worth a look
-
How to take input in Python using lunar vim?
If I understand currently this https://github.com/michaelb/sniprun plugin should do the trick for you.
-
In-editor lua REPL: nvim-luadev vs neorepl.nvim
I can't speak for the two above plugins (I shall try them!), but... While I'm developing in Lua, I like to use michaelb's sniprun. I'll just build my tests inside the file I'm working on, and see my outputs update live within the buffer as I edit.
-
Tools for productivity
REPL??? Do you have a very-easy-to-use way of running and testing your code? From vim-slime to nvim sniprun to autocommands with the built in terminal, to an external repl like ptpython (for python obviously). iron.nvim and conjure are two other neovim repl plugins. There are many ways of running the code that you're working on, and having something that makes this really easy for you is pretty essential. (sometimes I use inotifytools on linux to literally just run the script every time I save it.)
-
Favorite REPL/Notebook/Task Running plugins and workflow?
I'm glad for the reminder about sniprun, I had it bookmarked but not categorized well enough and forgot about it.
-
TIL: you can run code inside markdown :O
Install SnipRun
-
New plugin: Equals (#=)
A similar plugin that comes to mind is sniprun.
- Run code in Nvim
- Is there any plugin or a way where I can see my code like this and not opening a browser to view it?
- Plugin for send code unit to any interpreter
toggleterm.nvim
-
Neovide – a simple, no-nonsense, cross-platform GUI for Neovim
As a data point, I'd like to chime in here. I have been a 15 year user of tmux (and screen before that) and never thought I'd change my development habits. Over the holidays I decided I would do one of those once-every-five-years upgrades to my vim setup as I had accrued dozens of vendored plugins in normal vim and wanted to see what the big deal with neovim was.
I bit the bullet and evaluated some of the "distributions" (AstroNvim and kickstarter) and played around with all the new lua plugins that I had never thought I needed (why use telescope when FZF-vim worked so well?).
Anyways, after a month of tweaking and absorbing, I found myself running Neovide only, and doing something I never thought I'd see, running tmux from within neovim/neovide. I think this only works (for me) because of session management (there are half a dozen plugins for handling quickly changing 'workspaces') and because the built-in terminal (with a very useful plugin called toggleterm: https://github.com/akinsho/toggleterm.nvim) works so well.
I have not stopped using tmux and layouts, and it sits in another fullscreen iterm2 workspace, but I find that I now spend 90% of my time using a fullscreen neovide and summoning/toggling tmux momentarily for running commands.
Of course, the caveat here is that my preferred mode of operation is being fullscreen as often as possible. I think if your preferred mode of operation is to always see splits then running neovim from the terminal within tmux is still the way to go.
As for why I like neovide? I find the animations, when tweaked to be less 'cool' are extremely useful to see where the cursor jumps to. I am also a huge fan of the fact that I can finally use 'linespace' to put some space between my lines of code -- it is an aesthetic I didn't realize I wanted.
-
NeoVim Capability Functions
For splitting the terminal you could try either toggleterm or tmux. If you want to send things from one tmux pane to another, then you can use slime. For a toggle-able filetree, you can use nvim tree.
-
Is there any gotchas for using Neovim's built in terminal?
I just found toggleterm which feels awesome. Pretty much exactly what I was looking for to use with Alacritty but even better since its integrated into the rest of my Neovim workflow.
-
How to unfloat a terminal in Lazyvim
I saw this plugin that tells me how to do it, however I got confused after I added "require("toggleterm").setup({})" in the lazy.lua file and installed the package as well using the Lazy command
-
VSCode-like terminal setup
I tried toggleterm but I wasn't successful.
-
Noobie Needs a Nudge
And I never really got into Gitsigns or vim-fugitive. Lots of people love them, so I'm sure they're great, but I'm happy opening a floating terminal with Toggleterm and using Lazygit.
-
Using Floaterm, what's the best way to toggle between the editor and opened window and maintain the shell session?
I agree with u/Bamseg, but you can get what you want using toggleterm.nvim BUT NOT IN FLOAT.
-
What do you use for git integration in neovim?
I use gitsigns for linewise operations (blame, reset, etc), and a floating terminal (toggleterm) for everything else. flatten.nvim also helps with nested nvim instances.
-
Switching from Emacs. My experience
but I ended up finding a good enough workaround by using Lazygit through Toggleterm.
-
Just got neovim up and working
Perhaps you want something like https://github.com/akinsho/toggleterm.nvim and make a custom profile? Remapping a key for each extension seems fine as well, just remap it per-buffer inside of on_attach
What are some alternatives?
iron.nvim - Interactive Repl Over Neovim
vim-floaterm - :computer: Terminal manager for (neo)vim
codi.vim - :notebook_with_decorative_cover: The interactive scratchpad for hackers.
neoterm - Wrapper of some vim/neovim's :terminal functions.
code_runner.nvim - Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
multiterm.vim - Toggle and Switch Between Multiple Floating Terminals in NeoVim or Vim
vim-slime - A vim plugin to give you some slime. (Emacs)
AstroNvim - AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins
vim-terminator - :dagger: Run your code in an output buffer or a vim terminal conveniently
tmux - tmux source code
AstroVim - AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins [Moved to: https://github.com/AstroNvim/AstroNvim]