Skip to content

PriceHiller/z.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Z.nvim

A simple wrapper around the z shell program.

Confirmed to work with the following implementations:

Open an issue/PR if a z implementation works/doesn't work 🙂.

Installation/Setup

  • lazy.nvim:

    {
      "PriceHiller/z.nvim",
      config = true,
      cmd = { "Z" }
    }

Configuration

The default configuration is provided below (works with z.lua):

require("z").setup({
    z_cmd = { "z", "-e" },
    z_comp_cmd = { "z", "--complete" },
    z_dir_changed_cmd = { "z", "--add" },
})

A configuration for zoxide:

require("z").setup({
    z_cmd = function()
        return { "zoxide", "query", "--exclude", vim.fn.getcwd() }
    end,
    z_comp_cmd = function()
        return { "zoxide", "query", "--list", "--exclude", vim.fn.getcwd() }
    end,
    z_dir_changed_cmd = { "zoxide", "add" }
})

Usage

z.nvim provides a single user command: Z. Type Z and a commonly visited directory to change the current directory to it.

Just like using z in the command line.

Releases

No releases published

Packages

No packages published