Skip to content

haaag/projects.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

💥 Projects fzf

Simple fzf-lua project manager for neovim.

Warning

This is currently a work in progress, expect things to be broken!

⚡️ Dependencies

📦 Installation

{
  'haaag/projects.nvim',
  dependencies = {
    "ibhagwan/fzf-lua",
    "nvim-tree/nvim-web-devicons", -- optional
  },
  opts = {},
  keys = {
    { '<leader>sp', '<CMD>FzfLuaProjects<CR>', desc = 'search projects' },
  },
  enabled = true,
}
⚙️ Default configuration
require('projects').setup({
  -- `user-command` in neovim
  cmd = 'FzfLuaProjects',
  -- file store ($XDG_DATA_HOME/nvim || ~/.local/share/nvim)
  fname = vim.fn.stdpath('data') .. '/projects.json',
  -- fzf's prompt
  prompt = 'Projects> ',
  -- preview
  previewer = {
    enabled = true,
  },
  -- icons
  icons = {
    default = '',
    warning = '',
    color = '#6d8086',
    enabled = true,
  },
  -- enable color output
  color = true,
  -- keybinds
  keymap = {
    add = 'ctrl-a',
    edit_path = 'ctrl-e',
    edit_type = 'ctrl-t',
    grep = 'ctrl-g',
    remove = 'ctrl-x',
    rename = 'ctrl-r',
    restore = 'ctrl-u',
  },
})

About

Simple fzf-lua project manager.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages