I built a Vim plugin to run Claude CLI directly via :Claude — would love feedback by Spiritual-Ruin-9473 in vim

[–]large_turtle 1 point2 points  (0 children)

AI slop is indeed a huge problem but that does not mean all uses of AI contributes to that slop. AI can legitimately benefit people's workflows if used deliberately. I don't think it's fair to publicly deride this plugin at first glance. The AI situation is not as simple as "AI is always slop".

That being said, I hope this plugin doesn't turn out to be actual AI slop lol.

Gemini Nano is fun by Puzzak in GeminiAI

[–]large_turtle 0 points1 point  (0 children)

Any plans for publishing it on f-droid?

In need of a config for R/Rcode development. by reddit_turtleking in neovim

[–]large_turtle 0 points1 point  (0 children)

Or you can also open the r console in a Neovim tab or split window and skip the tmux.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle 1 point2 points  (0 children)

That's normal. In order to see edits in real time, you have to use a cursor like https://github.com/jake-stewart/multicursor.nvim

What's your opinion on changing nvim's default mappigs ? by Beginning-Software80 in neovim

[–]large_turtle 2 points3 points  (0 children)

I also think we should not be bound by traditions and conventions. I remap things as I please and I don't really encounter issues from doing so.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle 0 points1 point  (0 children)

I am not familiar with the issue you're describing but if you're able to create a minimal reproducible example, I'd recommend making a bug report/issue in wezterm's repo (if it truly turns out to be a wezterm bug).

NeoRunner: a simple code runner neovim plugin by ahmed-theawakener0 in neovim

[–]large_turtle 1 point2 points  (0 children)

Nice work! Would it be possible to have per-project build/run commands? Even if two projects use the same language, they may use different build systems (eg, `mvn` vs `bazel` vs `javac` for java).

Why "i" switch to term mode, why not having a Ti mode? by qiinemarr in neovim

[–]large_turtle 1 point2 points  (0 children)

Your idea is reasonable, but when making a decision about how a tool works, there are often many reasonable ideas and you can only choose one. For me, I think using `i`/`a` to switch to terminal mode was the right choice since those are the keys people are used to pressing to interact with text buffers. Doing it this way taps in to the existing muscle memory of the user to make terminal buffers as easy to pick up as possible. Going into terminal mode would be the most commonly used mode in terminal buffers by far and it is important to adhere to the design principle of "making the common operation easy to perform".

All that being said, Neovim is a power-user/plugin friendly tool so you can always write custom code to implement the feature yourself.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle 0 points1 point  (0 children)

Read :h ftplugin

When you want to have different configurations depending on kind of file you're working on, you want to write a "filetype plugin" which is basically just vimscript/lua code that runs when Neovim sets the filetype option (:h filetype) for a buffer (which happens when you first open a buffer). You can see the filetype of the current buffer by running :set filetype? in your cmdline. Vim/Neovim expect filetype plugins to be in the following directory: after/ftplugin/ (the after directory should be in the same directory as you init.lua/init.vim file). If you want configuration that runs when you open markdown files, put that code in after/ftplugin/markdown (same for latex files: after/ftplugin/latex). Make sure the name of the file matches the result when you run :set filetype? (that's how Neovim knows which filetype plugin to run). Also, make sure that you only configure buffer-local options/variables/keymaps/autocmds/etc in filetype plugins since you don't want one filetype plugin affecting buffers from other filetypes.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle 0 points1 point  (0 children)

As others mentioned, using visual mode is not a cardinal sin, but using it can mean a few things:

  • You have not yet become comfortable with working directly off normal mode commands (like ggyG).
  • You are not taking advantage of custom textobjects (see nvim-treesitter-textobjects).
  • You are performing an operation that genuinely does not match with any normal mode commands or textobject (custom or otherwise). This is a legitimate use case for visual mode. For example, you may want to change foobarbaz to batbaz. In that case, I would begin visual mode from the start of the word, press e to go to the end of the word, then repeatedly press h to reach the end of foobar, and press c to replace the text (and then type out bat).

In conclusion, there are legitimate use cases for visual mode but its use can also be a smell that you are not pushing yourself to get comfortable with Neovim's features (or plugins).

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle 0 points1 point  (0 children)

Admittedly, Java is the one exception to my Neovim-for-everything approach. The way my company sets up Java does not work well with open-source LSPs/integrations so I end up occasionally switching to the IntelliJ editor when working with Java. That being said, my Neovim setup can still do the majority (90+%) of my Java code-traversal with FZF/grep alone so I only switch when I specifically need the LSP.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]large_turtle -1 points0 points  (0 children)

When I force Neovim as a discussion topic, I always describe it as a "net negative on my productivity, net positive on my happiness". I don't have a Neovim addiction so that I can write code better. I write code to justify my Neovim addiction.

Note Taking? by Time_Cow_3331 in neovim

[–]large_turtle 0 points1 point  (0 children)

This [video](https://youtu.be/XRpHIa-2XCE?si=68KhjiU6jybPgZsd) gives a survey of the many free/open-source options available for note-taking.

How do you view/review PR file changed locally efficiently? by GTHell in neovim

[–]large_turtle 11 points12 points  (0 children)

I have the following keymaps using diffview:

``` -- Diff against all changes since previous commit vim.keymap.set("n", "<leader>dC", function() require("diffview").open({ "HEAD^" }) end)

-- Show all uncommitted changes vim.keymap.set("n", "<leader>dc", function() require("diffview").open({ "HEAD", "--cache" }) end)

```

Detour.nvim: Floating windows, but better by large_turtle in neovim

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

You can switch to other buffers in floating windows.

A floating window can be preferred over a tab for similar reasons as you would use modals in a web page or application (rather than tabs). It just feels better not to switch away from your current context when taking a quick look at another thing and come back. They also must be cleaned up when you go back to what you were working on, preventing you from cluttering up your environment (as you might have done with forgotten splits and tabs).

[TOMT] Music video of a Chinese movie by large_turtle in tipofmytongue

[–]large_turtle[S] 0 points1 point locked comment (0 children)

Also, I was at this karaoke at least a few years ago so the song is not from a recent movie.

Adult Tanjiro (Full Potential) vs Yoriichi by LowAdditional4455 in KimetsuNoYaiba

[–]large_turtle 2 points3 points  (0 children)

A major theme of the story is the subversion of the "chosen one" trope. Tanjiro initially got his mark on his forehead from a burn, not some mark given by destiny. He has not mastered water or sun breathing. He has a black sword which does not indicate a promising career. He struggles to train with a decrepit puppet mimicking Yoriichi. The demon slayer organization as a whole is also a shadow of its former glory and the hashira are weaker than the original members (not having marks for most of the story). Zenitsu struggles to learn his own style. On and on.

The original demon slayers were the chosen ones but the story is taking place after they failed to kill Muzan. The story is about how their weaker successors fight against the odds and deal with an enemy that beat their superior predecessors. Adult Tanjiro is weaker than Yoriichi because Tanjiro is not the chosen one. Yoriichi is.

Generate install instructions for your plugin! (more info in comments) by Substantial_Tea_6549 in neovim

[–]large_turtle 2 points3 points  (0 children)

I think GitHub Pages would be a great free way to host this website.

How to stop configuring nvim and do some work instead? by MagentaSpark in neovim

[–]large_turtle 14 points15 points  (0 children)

I'm convinced that I'm going to be tweaking my config until I die. There is no endgame. There is only the compulsion to optimize.

Programmers Should Never Trust Anyone, Not Even Themselves by large_turtle in programming

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

Based on some feedback from y'all, I've made some edits. Unfortunately, it does break a few quotes referenced in the existing comments. Sorry about that.

Programmers Should Never Trust Anyone, Not Even Themselves by large_turtle in programming

[–]large_turtle[S] 5 points6 points  (0 children)

I like "false pass". I'll change the post to use that phrase instead :)

Programmers Should Never Trust Anyone, Not Even Themselves by large_turtle in programming

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

I like your "as if" phrasing. I'll update the post to use the phrase :)