Simple fzf-lua project manager for neovim
.
Warning
This is currently a work in progress, expect things to be broken!
neovim
version >=0.9.0
fzf-lua
neovim plug-innvim-web-devicons
optional
{
'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',
},
})