frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Sllm.nvim – Integrate Simon’s LLM cli into Neovim (500 LOC Lua)

https://github.com/mozanunal/sllm.nvim
2•mozanunal•8h ago
Hi HN,

I built [sllm.nvim](https://github.com/mozanunal/sllm.nvim), a minimal (about 500 lines of Lua) Neovim plugin to bring Simon Willison’s excellent `llm` CLI directly into your coding workflow.

- Chat with LLMs (OpenAI, OpenRouter, etc.) in a split buffer. - Add files, visual selections, shell command outputs, LSP diagnostics, or URLs as fragments to your LLM context, all from Neovim. - Async streaming jobs — never block the editor. - Switch LLM models, see token/cost stats, and use keybindings for everything.

Inspired by Simon’s blog posts on long-context LLM workflows and managing context/fragments from the terminal — I wanted to make it seamless directly inside the editor. It uses [mini.nvim](https://github.com/echasnovski/mini.nvim) for the UI, but the core logic is just ~500 LOC.

Feedback/questions welcome! Thanks to Simon Willison & the llm community for all the inspiration.

Comments

mozanunal•8h ago
Why sllm.nvim?

The [`llm`](https://llm.datasette.io/en/stable/) command-line tool by Simon Willison (creator of Django, Datasette, and sqlite-utils) is a wonderfully extensible way to interact with Large Language Models. Its power lies in its simplicity and vast plugin ecosystem, allowing users to tap into numerous models directly from the terminal.

I was particularly inspired by Simon's explorations into `llm`'s [fragment features for long-context LLMs](https://simonwillison.net/2025/Apr/7/long-context-llm/). It struck me how beneficial it would be to seamlessly manage and enrich this context directly within Neovim, my primary development environment.

Like many developers, I found myself frequently switching to web UIs like ChatGPT, painstakingly copying and pasting code snippets, file contents, and error messages to provide the necessary context for the AI. This interruption broke my workflow and felt inefficient. `sllm.nvim` was born out of the desire to streamline this process. Contained within around 500 lines of Lua, it aims to be a simple yet powerful Neovim plugin. The heavy lifting of LLM interaction is delegated to the robust `llm` CLI. For the user interface components, I've chosen to leverage the excellent utilities from `mini.nvim` – a library I personally use for my own Neovim configuration – and plan to continue using its modules for any future UI enhancements. The focus of `sllm.nvim` is to orchestrate these components to manage LLM context and chat without ever leaving the editor.

As Simon Willison also discussed in his post on [using LLMs for code](https://simonwillison.net/2025/Mar/11/using-llms-for-code/), effective context management is key. `sllm.nvim` aims to significantly contribute to such a workflow by making context gathering and LLM interaction a native part of the Neovim experience.

Why Apple Still Hasn't Cracked AI

https://www.bloomberg.com/news/features/2025-05-18/how-apple-intelligence-and-siri-ai-went-so-wrong
1•RyanShook•52s ago•0 comments

The Monster-Slaying Game You Can Play Almost Anywhere

https://www.nytimes.com/2025/05/21/arts/play-doom-ports.html
1•markostamcar•1m ago•0 comments

Show HN: I built a tool to compare availability across multiple Calendly links

https://www.calcompare.io/
1•jony1266•1m ago•0 comments

Stop Vibe Testing Your MCP Server

https://www.jlowin.dev/blog/stop-vibe-testing-mcp-servers
1•jlowin•1m ago•0 comments

Alex Danco on the culture of gift-giving that powers Silicon Valley

https://jdahl.substack.com/p/alex-danco-on-the-culture-of-gift
1•jger15•1m ago•0 comments

Distinguished Contributor Awards with OpenSSL 3.5 Honorees

https://openssl-corporation.org/post/2025-05-20-3.5-awards/
1•runningmike•2m ago•0 comments

'Dilbert' Creator Scott Adams Announces He May Not Live Past Summer

https://www.mensjournal.com/entertainment/dilbert-creator-scott-adams-reveals-he-might-not-live-past-summer
1•iancmceachern•2m ago•0 comments

Show HN: I've built online video editor

https://clipjs.vercel.app/
1•mohyware•3m ago•0 comments

Reinforcement Learning for Symbolic Mathematics

https://arxiv.org/abs/2505.10762
1•MarcoDewey•5m ago•0 comments

µPC: Scaling Predictive Coding to 100 Layer Networks

https://arxiv.org/abs/2505.13124
1•frozenseven•5m ago•0 comments

Hacker News Alerts – Monitor your HN front page appearances

https://hn.dunkirk.sh/
1•radeeyate•8m ago•0 comments

Why were Belle Époque cities beautiful?

https://resobscura.substack.com/p/why-were-belle-epoque-cities-beautiful
1•benbreen•8m ago•0 comments

Show HN: Building High-Performance AI Agents with SmartBuckets and MCP

4•genovalente•9m ago•1 comments

America was already a mercantilist empire

https://thirdtreatise.substack.com/p/america-was-already-a-mercantilist
1•hahaxdxd123•10m ago•1 comments

Nvidia Pushes Further into Cloud with GPU Marketplace

https://www.wsj.com/articles/nvidia-pushes-further-into-cloud-with-gpu-marketplace-4fba6bdd
2•Bostonian•10m ago•1 comments

Casey Neistat has to get Beme 2 out

1•ugur2nd•12m ago•0 comments

Show HN

https://dillionhuston.github.io/
1•negativerespond•12m ago•1 comments

Google's future depends on AI and Project Mariner

https://www.theverge.com/google/671200/google-googling-ai-mode-project-mariner-i-o-2025
1•LAsteNERD•13m ago•0 comments

Newfound Mechanism Rewires Cellular Energy Processing for Drastic Weight Loss

https://nyulangone.org/news/newfound-mechanism-rewires-cellular-energy-processing-drastic-weight-loss
6•gnabgib•16m ago•0 comments

SIEM Purpose Built for MCP

https://mcpwned.com/
1•coderinsan•17m ago•1 comments

AIST Dance Video Database

https://aistdancedb.ongaaccel.jp/
1•Tomte•17m ago•0 comments

Fast Lane to Learning R

https://github.com/matloff/fasteR
1•Tomte•17m ago•0 comments

Roof of historic Ming Dynasty tower collapses in China

https://www.bbc.com/news/articles/c1w33xnnjdzo
1•pseudolus•17m ago•0 comments

Please Help Save [PJ]Weinberger Magnets

https://web.archive.org/web/20090727155248/http://ect.bell-labs.com/who/pfps/humour/pjw/conservancy/
1•srean•17m ago•0 comments

For Algorithms, a Little Memory Outweighs a Lot of Time

https://www.quantamagazine.org/for-algorithms-a-little-memory-outweighs-a-lot-of-time-20250521/
5•makira•19m ago•0 comments

Py-FSRS 6.0.0

https://github.com/open-spaced-repetition/py-fsrs
2•joshdavham•19m ago•0 comments

Auth Omnibus

https://authomnibus.com/
3•mooreds•21m ago•0 comments

HTTP Message Signatures

https://httpsig.org/
2•mooreds•22m ago•0 comments

An AI-generated summer reading list got published in major newspapers

https://www.npr.org/2025/05/20/nx-s1-5405022/fake-summer-reading-list-ai
1•rglover•22m ago•0 comments

Changes in the College Mobility Pipeline Since 1900

https://www.nber.org/papers/w33797
1•paulpauper•23m ago•0 comments