Input Breaks after PackerSync
ThePolishHussar opened this issue · comments
Jakub B commented
Description
After I run :PackerSync, pairs don't auto close and I cannot close a pair manually.
In other words
Before packer sync:
Input:
'sample
Output:
'sample|'
After:
Input:
'sample'''''''''''''
Output:
'sample|
Mapping bug
No response
Steps to reproduce
- Install using packer
- Run PackerSync
Minimal config
local fn = vim.fn
-- Automatically install packer
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
print('Installing packer close and reopen Neovim...')
end
-- Autocommand that reloads neovim whenever you save the plugins.lua file
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "init.lua",
command = "source <afile> | PackerSync",
group = vim.api.nvim_create_augroup("packer_user_config", {clear = true})
})
-- Use a protected call so we don't error out on first use
local status_ok, packer = pcall(require, 'packer')
if not status_ok then
return
end
-- Have packer use a popup window
packer.init({
git = { clone_timeout = -1 },
display = {
open_fn = function()
return require('packer.util').float({ border = 'single' })
end
}
})
return packer.startup(function(use)
use 'https://github.com/wbthomason/packer.nvim'
use {
'https://github.com/windwp/nvim-autopairs',
config = function() require("nvim-autopairs").setup {} end
}
if PACKER_BOOTSTRAP then
require('packer').sync()
end
end)
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.