Skip to content

⚙️ Git engine for minimal Neovim plugin handler graft.nvim

Notifications You must be signed in to change notification settings

tlj/graft-git.nvim

Repository files navigation

graft-git.nvim

tests typecheck

An extension to graft.nvim to handle automatic installation, removal and updates of plugins through git submodules.

Installation

See graft.nvim for a simple init.lua method which can be used to ensure both graft.nvim and other extensions like graft-git.nvim are automatically installed.

Or you can follow the manual installation method below.

Add graft-git.nvim as a git submodule in your Neovim configuration:

:execute '!git -C ' .. stdpath('config') .. ' submodule add https://github.com/tlj/graft-git.nvim pack/graft/start/graft-git.nvim'

Usage

Basic setup in your init.lua. This will automatically install all plugins defined by graft.nvim setup, and remove any plugins which are installed whithout being defined.

-- Use graft tools to automatically 
require("graft-git").setup({ install_plugins = true, remove_plugins = true })

-- The defined plugin will be automatically added as a submodule by graft-git.nvim
require("graft").setup({ 
  start = {
    "catppuccin/nvim", 
    { name = "catppuccin", setup = function() vim.cmd("colorscheme catppuccin-mocha") end } }
  },
})

The plugin adds the following commands:

:GraftInstall Installs all plugins according to the graft.nvim setup definition. :GraftRemove Removes all plugins installed in pack/graft which are no longer in the graft.nvim setup. :GraftUpdate Update all currently defined plugins from git. :GraftSync Install, remove and update all plugins as defined in the graft.nvim setup.

Healthcheck

In the Neovim cmdline run:

checkhealth graft-git

About

⚙️ Git engine for minimal Neovim plugin handler graft.nvim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages