8000 GitHub - tomtom/autopack_nvim · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
< 8AF8 svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom">
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autopack is a Neovim plugin that lazy-loads optional ('opt') packages on first key press, command invocation, or BufRead event. It is designed to reduce startup time by deferring plugin loading until the moment it is actually needed.

Installation autopack-installation

To install autopack using |vim.pack.add()| (Neovim 0.11+), add the following to your |init.lua|:

vim.pack.add({
    { src = "https://github.com/tomtom/autopack_nvim" },
})

Alternatively, use git etc. to download plugins into your pack/ directory.

Plugins must be installed in a pack/*/opt/<name>/ directory (the opt subdirectory, not start). autopack calls |:packadd| when a registered trigger fires.

Plugins are then loaded via:

require("autopack").setup({
    {
        name = "gitsigns",
        setup = { signcolumn = true },
        nmaps = { "<leader>gs" },
        commands = { "Gitsigns" },
    },
    {
        name = "fugitive",
        nmaps = { "<leader>gg" },
        commands = { "Git", "Gdiffsplit" },
    },
    {
        name = "telescope",
        setup = { defaults = { layout_strategy = "flex" } },
        nmaps = { "<leader>ff", "<leader>fg" },
        commands = { "Telescope" },
    },
})

The plugin will be loaded when one of the named keys is pressed or one of the stub commands is called.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0