diffview.nvim icon indicating copy to clipboard operation
diffview.nvim copied to clipboard

[Bug] How do I create a commit in diffview? in fugitive I have "CC"

Open pencilcheck opened this issue 1 year ago • 1 comments

Description

[Bug] How do I create a commit in diffview? in fugitive I have "CC"

Expected behavior

Able to commit directly in diffview

Actual behavior

I can't find keybinding

Steps to reproduce

No step

Health check

============================================================================== diffview: require("diffview.health").check()

Checking plugin dependencies ~

  • OK nvim-web-devicons installed.

Checking VCS tools ~

  • The plugin requires at least one of the supported VCS tools to be valid.
  • OK Git found.
  • OK Git is up-to-date. (2.46.0)
  • WARNING Configured hg_cmd is not executable: 'hg'

Log info

Relevant info from :DiffviewLog
############################
### PUT LOG CONTENT HERE ###
############################

Neovim version

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189
Run "nvim -V1 -v" for more info

Operating system and version

Darwin 23.4.0 arm64

Minimal config

-- #######################################
-- ### USAGE: nvim --clean -u mini.lua ###
-- #######################################

local root = vim.fn.stdpath("run") .. "/nvim/diffview.nvim"
local plugin_dir = root .. "/plugins"
vim.fn.mkdir(plugin_dir, "p")

for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

local plugins = {
  { "nvim-web-devicons", url = "https://github.com/nvim-tree/nvim-web-devicons.git" },
  { "diffview.nvim", url = "https://github.com/sindrets/diffview.nvim.git" },
  -- ##################################################################
  -- ### ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE ###
  -- ##################################################################
}

for _, spec in ipairs(plugins) do
  local install_path = plugin_dir .. "/" .. spec[1]
  if vim.fn.isdirectory(install_path) ~= 1 then
    if spec.url then
      print(string.format("Installing '%s'...", spec[1]))
      vim.fn.system({ "git", "clone", "--depth=1", spec.url, install_path })
    end
  end
  vim.opt.runtimepath:append(spec.path or install_path)
end

require("diffview").setup({
  -- ##############################################################################
  -- ### ADD DIFFVIEW.NVIM CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE ###
  -- ##############################################################################
})

vim.opt.termguicolors = true
vim.cmd("colorscheme " .. (vim.fn.has("nvim-0.8") == 1 and "habamax" or "slate"))

-- ############################################################################
-- ### ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE ###
-- ############################################################################

print("Ready!")

pencilcheck avatar Sep 04 '24 12:09 pencilcheck

That's not what diffview is for. :) You can continue using fugitive or whatever method you prefer.

Here are some suggestions: https://github.com/sindrets/diffview.nvim/blob/main/USAGE.md#committing

mmirus avatar Dec 26 '24 21:12 mmirus