Skip to content

Commit

Permalink
Open Packer commands in floating window
Browse files Browse the repository at this point in the history
  • Loading branch information
bnwa committed Nov 26, 2022
1 parent e34b9b0 commit 9014140
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ if not is_directory(packer_path) then
packer_instance = fn.system({'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', packer_path})
end

-- Run `PackerSync` after any change
require('packer').startup(function()
local packer_config = {
display = {
open_fn = function()
return require('packer.util').float()
end
}
}

local packer_spec = function()
use { 'wbthomason/packer.nvim' }
use { 'rafcamlet/nvim-luapad' }
use { 'tpope/vim-fugitive' }
Expand Down Expand Up @@ -39,4 +46,7 @@ require('packer').startup(function()
use { 'fannheyward/telescope-coc.nvim', config = function() require 'telescope'.load_extension 'coc' end }

if packer_instance then require('packer').sync() end
end)
end

-- Run `PackerSync` after any change
require('packer').startup({ packer_spec, config = packer_config })

0 comments on commit 9014140

Please sign in to comment.