Home

Awesome

fzf-lua-projections.nvim

fzf-lua-projections.nvim will help you restoring any project session in a breeze by facilitating my favorite plugin ibhagwan/fzf-lua and the new star project GnikDroy/projections.nvim.

btw, this repo was built with the help of projections.nvim and fzf-lua :)

Demo.

https://user-images.githubusercontent.com/24765272/205894447-3d6d3726-5085-4e7f-830b-8f99c58a5289.mov

Requirements.

Dependencies

Compatible with

Config. Example.

note: Actually, it's fzf-lua-projections requires GnikDroy/projections.nvim

use {
  'GnikDroy/projections.nvim',
  requires = {
    -- add these two lines
    'ibhagwan/fzf-lua',                  -- Customize the menu UI yourself from fzf-lua's setup.
    'nyngwang/fzf-lua-projections.nvim', -- actually, it's that fzf-lua-projections requires projections,
                                         -- I just want to make it compact :)
  },
  config = function ()
    require('projections').setup {
      -- ...
      store_hooks = {
        pre = function ()
          -- if you use neo-tree.nvim, add these two lines to the `pre` of `store_hooks`.
          vim.cmd('tabd Neotree close')
          vim.cmd('tabn')
          -- ...
        end,
        -- ...
      },
    }
    -- just setup your `autocmd`s for projections.
    -- ...
  end
}

-- the only keymap
vim.keymap.set('n', '<Leader>cp', function () require('fzf-lua-p').projects() end, NOREF_NOERR_TRUNC)