Slow insert mode in a gitcommit buffer

I use nvim as my editor for git commit. In a gitcommit buffer, when I go into insert mode, it took 2 or 3 sec to receive feedback of what I typed. Other modes are fine. I had to use replace mode to write my commit message. I’m not sure if this is related to the repository itself, my nvim config, or something related to my system.

Here is some info:

  • nvim:

    NVIM v0.6.0
    Build type: Release
    LuaJIT 2.0.5
    Compiled by builduser
    
    Features: +acl +iconv +tui
    See ":help feature-compile"
    
       system vimrc file: "$VIM/sysinit.vim"
      fall-back for $VIM: "/usr/share/nvim"
    
  • system:

    x86_64 GNU/Linux
    Os: artixlinux
    

in terms of my nvim config, I’m not sure what to post here

Am I missing something?

A list of the plugins you use might be helpful. I would imagine there is one that is using a FileType :h autocmd to attach to a gitcommit buffer and doing something like trying to list all remote branches for completion or something similar.

Sorry for may late response, levouh. Here’s the list of all my plugins:

wbthomason/packer.nvim
neovim/nvim-lsp
tami5/lspsaga.nvim
nvim-lua/popup.nvim
nvim-lua/plenary.nvim
nvim-telescope/telescope.nvim
kyazdani42/nvim-web-devicons
nvim-treesitter/playground
nvim-treesitter/nvim-treesitter
windwp/nvim-ts-autotag
p00f/nvim-ts-rainbow
hrsh7th/nvim-cmp
hrsh7th/cmp-nvim-lsp
hrsh7th/cmp-nvim-lua
hrsh7th/cmp-buffer
hrsh7th/cmp-path
hrsh7th/cmp-omni
onsails/lspkind-nvim
L3MON4D3/LuaSnip
saadparwaiz1/cmp_luasnip
rafamadriz/friendly-snippets
windwp/nvim-autopairs
norcalli/nvim-colorizer.lua
nvim-lualine/lualine.nvim
Mofiqul/vscode.nvim
junegunn/fzf.vim
numToStr/Comment.nvim
tpope/vim-fugitive
tpope/vim-rhubarb
tpope/vim-rsi
tpope/vim-repeat
tpope/vim-surround
tpope/vim-eunuch
tpope/vim-scriptease
github/copilot.vim
wsdjeg/vim-fetch
wellle/targets.vim
rhysd/committia.vim
rhysd/clever-f.vim
ironhouzi/starlite-nvim
nacro90/numb.nvim
reverseila/vim-cheat
lewis6991/gitsigns.nvim
lukas-reineke/indent-blankline.nvim
lervag/vim-foam
iamcco/markdown-preview.nvim run

For git plugins, I only use fugitive, which I don’t use it often. I will delete it and tell you the result.

Yep, It was fugitive. But, I have it in my vim config and vim doesn’t slow down when I commit!