Home

Awesome

sfm-git.nvim

The sfm-git extension is a plugin for the sfm plugin that integrates git functionality to the sfm file explorer.

image

Installation

To install the sfm-git extension, you will need to have the sfm plugin installed. You can then install the extension using your preferred plugin manager. For example, using packer.nvim:

{
  "dinhhuy258/sfm.nvim",
  requires = {
    { "dinhhuy258/sfm-git.nvim" },
  },
  config = function()
    local sfm_explorer = require("sfm").setup {}
    sfm_explorer:load_extension "sfm-git"
  end
}

Configuration

The sfm-git plugin provides the following configuration options:

local default_config = {
  debounce_interval_ms = 1000,
  icons = {
    unstaged = "",
    staged = "S",
    unmerged = "",
    renamed = "",
    untracked = "U",
    deleted = "",
    ignored = "◌"
  }
}

You can override the default configuration in load_extension method

sfm_explorer:load_extension("sfm-git", {
  debounce_interval_ms = 100
})

Commands

Installation

Highlight Values

The sfm-git plugin uses the following highlight groups to colorize the git icons in the explorer tree: