I have a weird kind of problem where every time I save my file using :w
or zz
neovim as a whole lags for sometime. This most of the times happens when I try to save large files which are about 2k+ lines. It happens mostly with TypeScript, Golang and Zig. I tried to search for this issue but couldn’t find. One thing I know is that when I do nvim -u NONE
its of course very fast then. No problems. So, the problem arises from one of my plugins.
Now, I am not sure how to fix the problem. That’s the thing. Can someone guide me as to how to proceed and debug?
Here is my plugin list:
use {"wbthomason/packer.nvim", opt = true}
use {"kyazdani42/nvim-web-devicons"}
use {"kyazdani42/nvim-tree.lua"}
use {"nvim-lua/plenary.nvim"}
use {"lewis6991/gitsigns.nvim"}
use {"glepnir/galaxyline.nvim"}
use {"akinsho/nvim-bufferline.lua"}
use {"norcalli/snippets.nvim"}
use {"nvim-treesitter/nvim-treesitter"}
use {'nvim-treesitter/playground'}
use {"chriskempson/base16-vim"}
use {"norcalli/nvim-colorizer.lua"}
use {'Yggdroot/indentLine'}
use {"ryanoasis/vim-devicons"}
use {"sbdchd/neoformat"}
use {"neovim/nvim-lspconfig"}
use {"hrsh7th/nvim-compe"}
use {"windwp/nvim-autopairs"}
use {"alvan/vim-closetag"}
use {"tweekmonster/startuptime.vim"}
use {"onsails/lspkind-nvim"}
use {"nvim-telescope/telescope.nvim"}
use {"nvim-telescope/telescope-media-files.nvim"}
use {"nvim-lua/popup.nvim"}
use {"b3nj5m1n/kommentary"}
use {"zah/nim.vim"}
use { "kdheepak/lazygit.nvim" }
use {"akinsho/nvim-toggleterm.lua"}
use {'iamcco/markdown-preview.nvim', run = 'cd app && pnpm i', cmd = 'MarkdownPreview'}