lewis6991 / impatient.nvim

Improve startup time for Neovim
MIT License
1.19k stars 28 forks source link

amazing!!! But is require('packer_compiled') neccessary? #31

Closed finviman closed 3 years ago

finviman commented 3 years ago

I have config like this

require('impatient')
-- require('packer_compiled')
  use {'lewis6991/impatient.nvim',config = {
    compile_path = '~/.config/nvim/lua/plugin/packer_compiled.lua'
  }

and the startup speed is nearly 2X faster than before. but require('packer_compiled') report an error:

module 'packer_compiled' not found

so i comment it.

bangedorrunt commented 3 years ago

That compile_path is supposed to be setup by packer, not by impatient

alexzanderr commented 3 years ago

still doesnt work with this config


    use 'lewis6991/impatient.nvim'
    config = {
        -- Move to lua dir so impatient.nvim can cache it
        compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua'
    }
alexzanderr commented 3 years ago

but its weird, without this require packer compiled, the plugins works and the startuptime is insanely fast

lewis6991 commented 3 years ago

Did you make sure to delete the old packer_compiled.lua? And did you also run :PackerCompile with the new config?

lewis6991 commented 3 years ago

Also note that the packer_compile.lua trick isn't necessary, it just allows that specific module to be cached.

finviman commented 3 years ago

That compile_path is supposed to be setup by packer, not by impatient

Yes, I was wrong