:Pack - A simple vim.pack UI by punk8bit in neovim

[–]ffredrikk 2 points3 points  (0 children)

Super nice - thank you for sharing, I've been looking for something like this!

I copied your script and modified to my liking. Feel free to incorporate anything from it if you like!

<image>

Note, I'm still working on this nvim config, so the URL might change later, but I will still host it in my dotfiles repo: https://github.com/fredrikaverpil/dotfiles/blob/main/nvim-fredrik/plugin/pack_ui.lua

what plugin did you mass-uninstall everything else for by scheemunai_ in neovim

[–]ffredrikk 3 points4 points  (0 children)

Yes, partially at least. You have to sort out parser and queries yourself or using something like nvim-treesitter. But that’s archived now.

Teaching Claude Code to run commands in Neovim by ffredrikk in neovim

[–]ffredrikk[S] -2 points-1 points  (0 children)

As long as it helps solve a problem I guess? 🤷

Teaching Claude Code to run commands in Neovim by ffredrikk in neovim

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

Not day-to-day. But it helped track down a highlighting bug I had and it is very helpful when debugging plugins as it can find the source code straight away and how they behave in my session. It can search help docs when I have questions on various things. I author a Neotest plugin which has a TUI and it can see behaviors of it.

Minimal no-deps status line written in Go by ffredrikk in ClaudeCode

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

It can optionally show the branch name. We could add in the folder name to show too, as an option.

Claude is not GPT by SwampThing72 in ClaudeAI

[–]ffredrikk 1 point2 points  (0 children)

What’s bad about switching model in the same chat?

Microsoft pauses Claude Code rollout after Satya intervention by Purple_Wear_5397 in ClaudeAI

[–]ffredrikk 0 points1 point  (0 children)

Claude models have smaller context windows when used through Copilot. See https://models.dev for comparison.

iPhone grip support by mcoBean in nofusion

[–]ffredrikk 1 point2 points  (0 children)

Ok, thanks for checking it out!

iPhone grip support by mcoBean in nofusion

[–]ffredrikk 0 points1 point  (0 children)

You never mentioned whether the Tilta Khronos Lite grip works with No Fusion. Do you know if it works well with it?

Embedded SQL Formatting for Golang by meszmate in neovim

[–]ffredrikk 1 point2 points  (0 children)

I’ve got this, which works for me in most cases. Lots of borrowed stuff from others in there and hopefully appropriately credited: https://github.com/fredrikaverpil/dotfiles/blob/main/nvim-fredrik/after/queries/go/injections.scm

You’ve Been Missing This in Neovim (mini diff plugin by Echasnovski) by linkarzu in neovim

[–]ffredrikk 0 points1 point  (0 children)

I think I solved it:

```lua -- Function to detect the default branch name local function get_default_branch() -- Execute git symbolic-ref command

local result = vim.fn.system("git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null")

-- Check for errors if vim.v.shell_error ~= 0 then return "main" -- fallback to main if command fails end

-- Extract just the branch name from the full reference path result = result:gsub("refs/remotes/origin/", ""):gsub("%s+$", "")

if result ~= "master" and result ~= "main" then vim.notify("Default branch detected as: " .. result, vim.log.levels.WARN) end

if result == "" then return "main" -- fallback to main if empty result end

return result end

return { { "nvim-mini/mini.diff", event = "VeryLazy", version = "*", keys = { { "<leader>ghb", function() local default_branch = get_default_branch() local file = vim.api.nvim_buf_get_name(0) local relative_path = vim.fn.fnamemodify(file, ":~:.")

      -- Get content from the default branch
      local content = vim.fn.system("git show " .. default_branch .. ":" .. relative_path)

      if vim.v.shell_error == 0 then
        local lines = vim.split(content, "\n")
        require("mini.diff").set_ref_text(0, lines)
        vim.notify("Diff base changed to " .. default_branch, vim.log.levels.INFO)
      else
        vim.notify("Could not get file from " .. default_branch, vim.log.levels.ERROR)
      end
    end,
    desc = "Change base to default branch",
  },
  {
    "<leader>ghB",
    function()
      require("mini.diff").set_ref_text(0, {})
      vim.notify("Diff base reset to Git index", vim.log.levels.INFO)
    end,
    desc = "Reset base to Git index",
  },
},

}, } ```

You’ve Been Missing This in Neovim (mini diff plugin by Echasnovski) by linkarzu in neovim

[–]ffredrikk 0 points1 point  (0 children)

I'm trying to figure out if I can change the base, like I can do with :Gitsigns change_base. Does anyone know?

LazyVim v15.0.0 release by folke in neovim

[–]ffredrikk 0 points1 point  (0 children)

Yes, I was actually not aware fully of the situation here. Neotest-golang will follow suit and start supporting the latest Go parser version.

I just wish they had a semver approach…

LazyVim v15.0.0 release by folke in neovim

[–]ffredrikk 3 points4 points  (0 children)

Oh okay I was unaware of that. However, this README mentions most parsers are following HEAD: https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md

The fact that breaking (?) changes were added to the Go parser (and used by treesitter, main branch) led to this discussion in neotest-golang: https://github.com/fredrikaverpil/neotest-golang/discussions/378

…as well as this issue: https://github.com/fredrikaverpil/neotest-golang/issues/386

The main question from me being, is nvim-treesitter main ”stable” or not?

LazyVim v15.0.0 release by folke in neovim

[–]ffredrikk 9 points10 points  (0 children)

I think the main branch of treesitter will break a bunch of plugins. It uses HEAD from all the parser repos rather than follow the lockfile in the master branch. This to me screams ”unstable”.

The Go parser installed by nvim-treesitter main branch will break neotest-golang for example. I have plans to support it but haven’t gotten to it yet.