Coder Social home page Coder Social logo

paq-nvim's Introduction

Paq

Paq is a Neovim package manager written in Lua.

Features

  • Simple: Easy to use and configure
  • Fast: Installs and updates packages concurrently using Neovim's event-loop
  • Small: Around 500 LOC

Requirements

NOTE Paq follows the Neovim version available in Debian stable.

Installation

Clone this repository.

For Unix-like systems:

git clone --depth=1 https://github.com/savq/paq-nvim.git \
    "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim

For Windows (cmd.exe):

git clone https://github.com/savq/paq-nvim.git %LOCALAPPDATA%\nvim-data\site\pack\paqs\start\paq-nvim

To install Paq automatically or to install your plugins in --headless mode see the documentation section :h paq-bootstrapping.

Usage

In your init.lua, require the "paq" module with a list of packages, like:

require "paq" {
    "savq/paq-nvim", -- Let Paq manage itself

    "neovim/nvim-lspconfig",

    { "lervag/vimtex", opt = true }, -- Use braces when passing options

    { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
}

Then, source your configuration (executing :source $MYVIMRC) and run :PaqInstall.

Commands

  • PaqInstall: Install all packages listed in your configuration.
  • PaqUpdate: Update all packages already on your system (it won't implicitly install them).
  • PaqClean: Remove all packages (in Paq's directory) that aren't listed on your configuration.
  • PaqSync: Execute the three commands listed above.

Options

Option Type
as string Name to use for the package locally
branch string Branch of the repository
build function Lua function to run after install/update
build string Shell command to run after install/update
build string Prefixed with a ':' will run a vim command
opt boolean Optional packages are not loaded on startup
pin boolean Pinned packages are not updated
url string URL of the remote repository, useful for non-GitHub repos

For more details on each option, refer to the documentation.

Related projects

You can find a comparison with other package managers in the wiki.

paq-nvim's People

Contributors

alukreis avatar barrett-ruth avatar borwe avatar br3in avatar craigmac avatar elihunter173 avatar gpanders avatar hhirtz avatar justinmk avatar keithhub avatar nguyenvukhang avatar nkeor avatar oscarbenedito avatar pohzipohzi avatar potamides avatar saccarosium avatar savq avatar snootiermoon avatar stfwn avatar wittyjudge avatar wviana avatar znielsen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.