nvim: packer now uses a floating window

This commit is contained in:
PowerUser64 2021-11-25 04:32:01 -08:00
parent 8e69c8385a
commit 89ef1fc30a

View file

@ -8,11 +8,14 @@ if fn.empty(fn.glob(install_path)) > 0 then
end
-- }
return require('packer').startup(function()
return require('packer').startup({function()
-- Packer
use { -- packer
'wbthomason/packer.nvim'
'wbthomason/packer.nvim',
config = function() -- Map :PS to :PackerSync
vim.cmd 'command! PS PackerSync'
end
}
-- Colors
@ -56,15 +59,14 @@ return require('packer').startup(function()
config = function()
require('blake.lsp').cmp()
end,
requires = { -- nvim-cmp sources
requires = { -- nvim-cmp sources (not required by cmp, but reqired by my configuration)
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-nvim-lua',
'hrsh7th/cmp-latex-symbols',
'hrsh7th/cmp-emoji',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-calc',
'hrsh7th/cmp-look',
'f3fora/cmp-spell',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-emoji',
}
}
use { -- Icons for each entry in the completion menu
@ -157,6 +159,8 @@ return require('packer').startup(function()
-- Conveniences
use { -- Web browser integration
'raghur/vim-ghost',
opt = true,
cmd = {'GhostStart', 'GhostInstall', 'GhostStop', 'GhostSync', 'GhostToggleSync'},
config = function() -- Map :GS to :GhostStart
vim.cmd 'command! GS GhostStart'
end
@ -200,7 +204,10 @@ return require('packer').startup(function()
if packer_bootstrap then
require('packer').sync()
end -- }
end)
end,
config = {
display = { open_fn = require('packer.util').float }
}})
-- vim:fdm=marker:fmr={,}:expandtab:tabstop=3:sw=3
-- vim:fdm=marker:fmr={,}:fdl=1:expandtab:tabstop=3:sw=3