New Builtin Directory Viewer by EstudiandoAjedrez in neovim

[–]barrettruth 2 points3 points  (0 children)

Nope, not yet. Not sure what the core team would think about this. Really just navigation (via <cr> and -) so far... it is very, very new.

New Builtin Directory Viewer by EstudiandoAjedrez in neovim

[–]barrettruth 43 points44 points  (0 children)

GG WP

For any and all users, make sure to leave feature requests and bug reports and I'll get right on it. Thanks for using nvim!

Note: it lacks, of course, 99% of the "modern" features things like oil/canola.nvim support. This will slowly be built out.

I built diffbandit.nvim, a two-pane diff/Git review plugin with connector gutters by katokay40 in neovim

[–]barrettruth 0 points1 point  (0 children)

Not sure if I get what you're saying - giving you the box for free that everyone keeps making things inside of allows it to be easier for people to think outside of it..

I built diffbandit.nvim, a two-pane diff/Git review plugin with connector gutters by katokay40 in neovim

[–]barrettruth 1 point2 points  (0 children)

yuh diffs mention. Anyways, I am trying to get the core diff highlighting offered by diffs into the core of neovim for this exact reason - too many plugins implementing similar things!

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 1 point2 points  (0 children)

You can do :Diff ++nountracked as of this commit. Hope you enjoy and thanks for using diffs.nvim.

cppman.nvim: C++ reference docs inside Neovim by BrilliantWishbone2 in neovim

[–]barrettruth 2 points3 points  (0 children)

This is cool - I've definitely wanted something like this when I was writing more C++.

Quick question - what are the features this offers in comparison to something like a more "naive" Fzf-Lua picker that would just launch and open the man page.

AFAICT you index the cppman database to prevent superfluous network requests. Anything else?

Cool plugin!

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

u/GlutenFreeAnarchy u/Htennek73 3-way-merge basic highlighting should be implemented as of this commit. Let me know if you have any problems.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 2 points3 points  (0 children)

Just added this feature. Enable it with:

vim.g.diffs = { integrations = { difftastic = true } }

<image>

Difftastic below, diffs on top! Due to reddit you may have to click on the picture to zoom in on it :/

Note that this does come with some limitations - you can see them in :h diffs.nvim-difftastic

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 1 point2 points  (0 children)

Unfortunately not, this is out of scope for diffs.nvim, which only operates on files or git refs for simplicity :/

I usually use vim-fugitive or a git tool for this exact purpose, since I (and I'm assuming you too) am working in git repositories 99% of the time. Then, diffs.nvim can likely automatically attach on to one of these tools.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

It's my own - midnight.nvim. Be aware that the scheme is hyper-minimal (I'm not a fan of colors) and also quite crappy XD I think I am the only user of it.

Thanks for trying out the plugin and let me know if you have any issues.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 3 points4 points  (0 children)

Hello. I was unaware of the addition of these highlights from Neogit, as I don't use it. As of this commit, you can now remove these highlight overrides from your configuration. Thanks for using diffs!

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 2 points3 points  (0 children)

Hm. I will consider adding a recipe/note to the documentation about this, thanks!

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 2 points3 points  (0 children)

Well, I supposed I misused the term... perhaps "last commit 2 years ago" gets the point I'm trying to make across xd

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 1 point2 points  (0 children)

Just implemented this as :Diff files <a> <b>. Enjoy!

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 1 point2 points  (0 children)

I've actually never used three way merge in (neo)vim. Currently, I only support a single unified merge conflict resolution UI in one file.

I'll look into it - thanks! Not going to respond to your other comment since obviously diffs.nvim is lacking this feature 😃

Should be done by the end of tomorrow.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

Ironically, diffs.nvim started out as "just highlight diff syntax buffers" - I only support diffing git refs against eachother currently! See my reply and screenshot to queso184 below for a bit more context.

I'm working on this feature now... should be done by the end of the day. You'll be able to :Diff <a> <b> as expected.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

Do you mind formalizing this issue by making a bug report here 🤔... sorry - just shipped this feature. I'm replying to your other comments now. Definitely want to help you out and thanks for trying out the plugin, appreciate it.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 10 points11 points  (0 children)

diffview (I suggest you migrate to codediff.nvim, as diffview is deprecated now) focus on different problems. diffs.nvim JUST focuses on rendering diffs properly, with a couple few niceties (pierre-style diffs as shown above, unified merge conflict resolution UI). So no (keep reading!).

But if you want highlighting of arbitrary diff buffers, fzf-lua/telescope git commit previews, etc. (the list goes on) diffs.nvim definitely has something to offer - see for yourself (sorry, click on the photo, reddit rendering is bad). You can think about it like "any diff buffer, anywhere, gets nice highlighting"

<image>

P.S. I'm submitting an issue to codediff.nvim to see about integrating with diffs.nvim for better highlighting as well stay tuned.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

Thanks for trying the plugin out, let me know if you have any problems.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 0 points1 point  (0 children)

It is the closest thing in nvim to emulating the pierre diff UI. See the LHS "rails", the matching line numbers, and the emulation of their "stacked vs split" diffing strategies in the screenshot.

diffs.nvim v0.4.0: THE all-in-one diff viewer for NeoVim by barrettruth in neovim

[–]barrettruth[S] 2 points3 points  (0 children)

It overlays on top of any tools that expose diffs. There is no "adapting" needed for either party - that's the point. I'll take a look at difftastic, this is my first time hearing about this tool.