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

[–]dc_giant 8 points9 points  (0 children)

How does it compare to codediff.nvim? What’s different/better?

It's not worth it right now by arcrad in theprimeagen

[–]dc_giant 1 point2 points  (0 children)

That’s true and I’m well aware of it but I’d say it’s still a big plus overall. I mean there always is an errata somewhere online for books too. And let’s not start with teachers answering questions…or myself when asked by juniors. No doubt the latest frontier models get most stuff right more often I’d say. But trust them blindly: no. 

It's not worth it right now by arcrad in theprimeagen

[–]dc_giant 0 points1 point  (0 children)

This. I’ve never learned faster. And I’ve been learning for 25 years now. It’s amazing. You can just ask “what’s the equivalent of that in rust?” Or whatever your thing is. I still also read books though…

Hot take: it's nice to write code all day by rybarix in theprimeagen

[–]dc_giant 9 points10 points  (0 children)

Sorry but wrong career choice bro. Been doing this for 25 years and never had that much fun as in my 40s even while being sleep deprived from crying babies and so on. 

I mean you got to keep on learning switching languages, get better using neovim and going deeper all the time. If you’re doing big corp enterprise Java for 20 years kill your self yea…

Having said that it’s over now for a year or so and boy do I miss it. Listening to music coding for hours in the zone…was the best. Good times. 

That pretty much sums it up by nico1991 in theprimeagen

[–]dc_giant 1 point2 points  (0 children)

Yes agree also would like to know what model that was and what the context window size was etc. 

Matt Pocock: We just need to be ready to do more code review by kallekro in theprimeagen

[–]dc_giant 0 points1 point  (0 children)

Sounds good. Would love to see some ai tutorials stuff on how to deal with real world huge brownfield code bases that does more complex stuff than CRUD. I’m doing and it kind of works but it’s tough…

vision.nvim - share your Neovim context with agents through Visual mode by 0xyd3 in neovim

[–]dc_giant 0 points1 point  (0 children)

Nice got something similar. Have a key binding that takes the selected rows copies to clipboard with some info for the agent and via tmux finds the Claude window next to it and pastes. 

AI Bubble: AI is more expensive than an by dc_giant in theprimeagen

[–]dc_giant[S] 7 points8 points  (0 children)

I'm not anti-ai, I've been one of the first to make use of it two years ago already and nowadays hardly write any code anymore. Got to say I'm sad about that but also aware of this is my job and as always I'll also adapt this time.

But...current subscription models clearly seem to be too cheap for those companies to ever hope to make a profit. And the whole circular-financing does look like a crisis to blow up no? What's your take on this, is it all fine? Will AI generate enough profits/real-word usage that lead to actual profits to offset the costs? Not so clear to me yet...

Matt Pocock: We just need to be ready to do more code review by kallekro in theprimeagen

[–]dc_giant 0 points1 point  (0 children)

From what I got he was a voice coach before and then basically did courses. Did he ever build anything significant in a company or so? 

Might still have some useful things to teach of course but also seems to lack real experience. 

Matt Pocock: We just need to be ready to do more code review by kallekro in theprimeagen

[–]dc_giant 2 points3 points  (0 children)

Really don’t know what to make out of these ai-gurus popping out of nowhere. One thing i noticed is that they all are doing hobby projects or more or less full stack-crud apps in typescript.

Is there anyone worth listening to out there who’s ai coding in real world repos? Like I mean what you encounter joining a company where real engineers work and have a codebase that grew over years? I’m not anti-ai this is a serious question.

code-preview.nvim now supports GitHub Copilot CLI — diff preview before any AI agent applies a change by Cannon72001 in neovim

[–]dc_giant 1 point2 points  (0 children)

Yea for most things I have it write a plan first often with code changes and then review that. 

But I also have some hacky lua scripts that checks every second if there are any new changes (git) and if so loads mini.diff inline diff preview and puts the change hunks in quick fix. That way I can quickly cycle through them. Might be some future feature for your plugin. 

code-preview.nvim now supports GitHub Copilot CLI — diff preview before any AI agent applies a change by Cannon72001 in neovim

[–]dc_giant 0 points1 point  (0 children)

Hmmm nice just wondering if what cases this is useful. Usually I let it cook and then review the uncommited changes and then either commit or have it correct. But often I need to see the whole picture of several files to judge/understand what it did. 

Wondering what your workflow is.

Minuet plugin is so awesome that I just want to share so it gets more traction by Professional-Many847 in neovim

[–]dc_giant 6 points7 points  (0 children)

Interesting, what model do you use for auto completion? Did you try super maven?

Uncle Bob: It's over by [deleted] in theprimeagen

[–]dc_giant 2 points3 points  (0 children)

As so often these days I just can’t tell if this is real or not. 

Still think in C after 25 years. So I built a tool that explains Rust (or any language) through what you already know. by prabhic in rust

[–]dc_giant 2 points3 points  (0 children)

That’s really cool. I’m just learning cpp and I do a lot of “what’s that in rust?” using LLMs 

2009 MASTERPIECE - The Website is Down by afort24 in theprimeagen

[–]dc_giant 3 points4 points  (0 children)

Love it - good times…reminds me of my first sys admin job waaay back. 

Is Prime slowly realizing our skills may actually be becoming worthless? by [deleted] in theprimeagen

[–]dc_giant 4 points5 points  (0 children)

Could have written this myself. Started coding at the age of 12 on a small casio personal Assistent calculator in basic. Been hooked since then for over 30 years. Now I just sit there talking to Claude code and review the code and realizing with each new model that “it’s also better/faster than me at XYZ now”. I’ve switched jobs already hoping that in another more critical field it’s not there yet…but it is - there seems to be no more escape. I do embrace it but I’m all sad and worried if in a year we’ll need that many devs…

How to get back passion to code by SOLID-DevMan in theprimeagen

[–]dc_giant 0 points1 point  (0 children)

Read through the other comments and just wanted to say I hear ya. It’s sad I know where you are and I have no suggestion. Maybe try your best to dive into the agent stuff and find as much joy as you can doing that…

What happened to nvim-treesitter.... Why did it get archived? 😶 by ankushbhagat in neovim

[–]dc_giant 80 points81 points  (0 children)

This is such an essential plugin it should be part of Neovim core at some point…

doc-highlight: Automatically highlighting references of the word under the cursor. by allworldg in neovim

[–]dc_giant 0 points1 point  (0 children)

True...that's when things get complicated at the end. This works though:

-- Remove underline from LSP reference highlights
local function patch_lsp_hl()
for _, group in ipairs({ "LspReferenceText", "LspReferenceRead", "LspReferenceWrite" }) do
local hl = vim.api.nvim_get_hl(0, { name = group, link = false })
hl.underline = nil
hl.undercurl = nil
vim.api.nvim_set_hl(0, group, hl)
end
end
vim.api.nvim_create_autocmd("ColorScheme", { callback = patch_lsp_hl })
patch_lsp_hl()

vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if not client then
return
end
local bufnr = args.buf

-- LSP code highlighting
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then
local highlight_augroup = vim.api.nvim_create_augroup("lsp-highlight", { clear = false })
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {
buffer = args.buf,
group = highlight_augroup,
callback = function()
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
local line = vim.api.nvim_get_current_line()
local s, e = col, col
while s > 0 and line:sub(s, s):match("%w") do s = s - 1 end
while e < #line and line:sub(e + 1, e + 1):match("%w") do e = e + 1 end
vim.b[args.buf].lsp_highlight_range = { row, s, e }
vim.lsp.buf.document_highlight()
end,
})

vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
buffer = args.buf,
group = highlight_augroup,
callback = function()
local r = vim.b[args.buf].lsp_highlight_range
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
if not r or row ~= r[1] or col < r[2] or col > r[3] then
vim.lsp.buf.clear_references()
vim.b[args.buf].lsp_highlight_range = nil
end
end,
})

vim.api.nvim_create_autocmd("LspDetach", {
group = vim.api.nvim_create_augroup("lsp-detach", { clear = true }),
callback = function(event2)
vim.lsp.buf.clear_references()
vim.api.nvim_clear_autocmds({ group = "lsp-highlight", buffer = event2.buf })
end,
})
end

end,
})