< Return to index

nvimの​clipboard.vimは​場合に​よっては​読み込みに​時間が​かかる

TL;DR:

  • 特定のlinux環境だとvimの起動後にclipboard.vimの読み込みに時間がかかる
  • パス探索で時間がかかっているので自分の環境に合わせて書き換えた方がいい

何があったん

manjaroのwezterm上で動かしているnvimが起動時間30msecとかなのに操作できるようになるまでに2secぐらい時間がかかっていた。

nvim --startuptimeしてみると以下のようなログが出ている。

times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.014  000.014: --- NVIM STARTING ---
000.288  000.274: event init
000.396  000.108: early init
000.496  000.101: locale set
000.565  000.068: init first window
001.074  000.509: inits 1
001.121  000.048: window checked
001.244  000.123: parsing arguments
001.915  000.046  000.046: require('vim.shared')
002.033  000.056  000.056: require('vim.inspect')
002.099  000.051  000.051: require('vim._options')
002.101  000.182  000.075: require('vim._editor')
002.103  000.299  000.072: require('vim._init_packages')
002.107  000.563: init lua interpreter
002.255  000.148: expanding arguments
002.279  000.024: inits 2
002.651  000.372: init highlight
002.653  000.002: waiting for UI
002.872  000.218: done waiting for UI
002.881  000.010: clear screen
002.982  000.015  000.015: require('vim.keymap')
003.527  000.636  000.621: require('vim._defaults')
003.531  000.015: init default mappings & autocommands
004.450  000.095  000.095: sourcing /home/omochice/.local/nvim/share/nvim/runtime/indent.vim
005.700  000.094  000.094: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/min.vim
014.218  000.097  000.097: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/synload.vim
014.579  000.023  000.023: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/ftdetect/dein.vim
014.648  000.347  000.324: sourcing /home/omochice/.local/nvim/share/nvim/runtime/filetype.lua
016.554  001.708  001.708: require('vim.filetype')
018.638  000.273  000.273: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/autoload.vim
019.114  000.354  000.354: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/util.vim
022.437  000.253  000.253: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/dtd.vim
022.512  000.666  000.414: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/xml.vim
023.834  000.405  000.405: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/javascript.vim
025.968  001.829  001.829: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/vb.vim
033.980  007.709  007.709: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/css.vim
035.401  013.632  003.023: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/html.vim
036.878  000.858  000.858: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/yaml.vim
036.981  015.303  000.813: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/markdown.vim
037.095  023.512  005.431: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/syntax.vim
037.269  000.099  000.099: sourcing /home/omochice/.local/nvim/share/nvim/runtime/filetype.lua
037.399  000.047  000.047: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/after/ftplugin.vim
037.469  000.012  000.012: sourcing /home/omochice/.local/nvim/share/nvim/runtime/indent.vim
038.770  000.703  000.703: require('artemis')
041.141  000.045  000.045: require('vim.F')
041.308  002.264  002.218: require('vim.diagnostic')
042.492  000.290  000.290: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein.vim
049.492  043.409  016.482: sourcing /home/omochice/.cache/dein/state_nvim.vim
056.596  000.052  000.052: sourcing /home/omochice/.config/nvim/autoload/myvimrc/fcitx.vim
056.675  052.048  008.493: sourcing /home/omochice/dotfiles/config/nvim/rc/vimrc
056.683  052.116  000.068: sourcing /home/omochice/.config/nvim/init.vim
056.688  000.945: sourcing vimrc file(s)
057.281  000.064  000.064: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/findroot.vim
057.395  000.064  000.064: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/gitbranch.vim
057.498  000.071  000.071: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/lightline.vim
057.658  000.129  000.129: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/seethrough.vim
057.877  000.014  000.014: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/rplugin.vim
058.041  000.125  000.125: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/editorconfig.lua
058.172  000.105  000.105: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/man.lua
058.289  000.087  000.087: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/nvim.lua
058.419  000.101  000.101: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/osc52.lua
058.445  000.997: loading rtp plugins
058.629  000.183: loading packages
058.654  000.025: loading after plugins
058.664  000.010: inits 3
061.739  003.075: reading ShaDa
069.176  000.199  000.199: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/dtd.vim
069.255  000.585  000.386: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/xml.vim
070.288  000.296  000.296: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/javascript.vim
071.269  000.836  000.836: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/vb.vim
078.451  007.086  007.086: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/css.vim
080.008  011.424  002.620: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/html.vim
081.314  000.852  000.852: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/yaml.vim
081.417  012.911  000.635: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/markdown.vim
082.142  000.269  000.269: sourcing /home/omochice/.local/nvim/share/nvim/runtime/autoload/htmlcomplete.vim
082.309  000.529  000.260: sourcing /home/omochice/.local/nvim/share/nvim/runtime/ftplugin/html.vim
082.884  001.221  000.692: sourcing /home/omochice/.local/nvim/share/nvim/runtime/ftplugin/markdown.vim
083.358  000.059  000.059: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/after/ftplugin/markdown.vim
093.275  000.733  000.733: require('hlchunk')
093.374  000.093  000.093: require('hlchunk.utils.string')
093.932  000.137  000.137: require('hlchunk.utils.array')
093.949  000.345  000.208: require('hlchunk.base_mod')
094.302  000.061  000.061: require('hlchunk.utils.ts_node_type.cpp')
094.373  000.067  000.067: require('hlchunk.utils.ts_node_type.lua')
094.376  000.200  000.073: require('hlchunk.utils.ts_node_type')
096.478  000.219  000.219: require('vim.treesitter.language')
096.654  000.167  000.167: require('vim.func')
096.852  000.193  000.193: require('vim.func._memoize')
096.876  001.235  000.655: require('vim.treesitter.query')
097.131  000.252  000.252: require('vim.treesitter._range')
097.154  002.307  000.821: require('vim.treesitter.languagetree')
097.163  002.783  000.476: require('vim.treesitter')
097.168  003.217  000.233: require('hlchunk.utils.utils')
097.268  000.098  000.098: require('hlchunk.utils.filetype')
097.286  003.841  000.181: require('hlchunk.mods.blank')
097.572  000.284  000.284: require('hlchunk.mods.chunk')
097.708  000.133  000.133: require('hlchunk.mods.context')
097.981  000.270  000.270: require('hlchunk.mods.indent')
098.153  000.168  000.168: require('hlchunk.mods.line_num')
098.159  004.773  000.078: require('hlchunk.mods')
099.864  000.355  000.355: require('nvim-treesitter.utils')
103.544  003.673  003.673: require('nvim-treesitter.parsers')
105.718  000.188  000.188: require('nvim-treesitter.compat')
106.775  000.700  000.700: require('nvim-treesitter.ts_utils')
106.794  001.068  000.368: require('nvim-treesitter.tsrange')
107.005  000.207  000.207: require('nvim-treesitter.caching')
107.106  002.235  000.772: require('nvim-treesitter.query')
107.223  003.206  000.970: require('nvim-treesitter.configs')
107.265  003.712  000.506: require('nvim-treesitter.info')
108.102  000.833  000.833: require('nvim-treesitter.shell_command_selectors')
108.212  009.840  001.267: require('nvim-treesitter.install')
108.495  000.278  000.278: require('nvim-treesitter.statusline')
109.220  000.718  000.718: require('nvim-treesitter.query_predicates')
109.229  011.005  000.170: require('nvim-treesitter')
115.583  000.190  000.190: require('ccc.utils')
115.736  000.147  000.147: require('ccc.config')
116.733  000.489  000.489: require('ccc.utils.hsluv')
117.272  000.535  000.535: require('ccc.utils.ok_colorspace')
117.284  001.445  000.422: require('ccc.utils.convert')
117.287  001.536  000.090: require('ccc.output.hex')
117.292  002.050  000.178: require('ccc.color')
117.441  000.146  000.146: require('ccc.prev_colors')
117.546  000.102  000.102: require('ccc.alpha')
117.556  002.909  000.611: require('ccc.ui')
117.720  000.079  000.079: require('ccc.input')
117.725  000.167  000.088: require('ccc.input.rgb')
117.806  000.079  000.079: require('ccc.input.hsl')
117.882  000.073  000.073: require('ccc.input.hwb')
117.951  000.066  000.066: require('ccc.input.lab')
118.018  000.065  000.065: require('ccc.input.lch')
118.103  000.082  000.082: require('ccc.input.oklab')
118.185  000.080  000.080: require('ccc.input.oklch')
118.262  000.074  000.074: require('ccc.input.cmyk')
118.329  000.065  000.065: require('ccc.input.hsluv')
118.407  000.076  000.076: require('ccc.input.okhsl')
118.492  000.083  000.083: require('ccc.input.hsv')
118.567  000.073  000.073: require('ccc.input.okhsv')
118.640  000.070  000.070: require('ccc.input.xyz')
118.724  000.080  000.080: require('ccc.output.hex_short')
118.793  000.066  000.066: require('ccc.output.css_rgb')
118.862  000.066  000.066: require('ccc.output.css_hsl')
118.929  000.065  000.065: require('ccc.output.css_hwb')
118.995  000.064  000.064: require('ccc.output.css_lab')
119.061  000.064  000.064: require('ccc.output.css_lch')
119.126  000.063  000.063: require('ccc.output.css_oklab')
119.192  000.063  000.063: require('ccc.output.css_oklch')
119.259  000.064  000.064: require('ccc.output.float')
119.533  000.152  000.152: require('ccc.utils.parse')
119.626  000.090  000.090: require('ccc.utils.pattern')
119.629  000.368  000.127: require('ccc.picker.css_rgb')
119.880  000.249  000.249: require('ccc.picker.css_name')
119.977  000.093  000.093: require('ccc.picker.hex')
120.073  000.093  000.093: require('ccc.picker.css_hsl')
120.160  000.084  000.084: require('ccc.picker.css_hwb')
120.244  000.082  000.082: require('ccc.picker.css_lab')
120.326  000.079  000.079: require('ccc.picker.css_lch')
120.412  000.084  000.084: require('ccc.picker.css_oklab')
120.494  000.079  000.079: require('ccc.picker.css_oklch')
120.605  000.108  000.108: require('ccc.picker.custom_entries')
120.811  000.203  000.203: require('ccc.picker.ansi_escape')
121.026  000.212  000.212: require('ccc.picker.trailing_whitespace')
121.036  006.636  000.343: require('ccc')
121.285  000.196  000.196: require('ccc.config.default')
122.003  000.368  000.368: require('ccc.highlighter')
126.621  001.553  001.553: require('notify.util.queue')
126.636  003.430  001.876: require('notify.util')
126.656  004.435  001.005: require('notify.stages.util')
129.068  000.692  000.692: require('notify.config.highlights')
129.077  001.480  000.788: require('notify.config')
130.577  000.677  000.677: require('notify.stages')
131.300  000.716  000.716: require('notify.service.notification')
133.581  000.668  000.668: require('notify.animate.spring')
133.588  001.410  000.741: require('notify.animate')
133.598  002.293  000.883: require('notify.windows')
135.814  000.729  000.729: require('notify.service.buffer.highlights')
135.823  001.492  000.763: require('notify.service.buffer')
135.826  002.226  000.734: require('notify.service')
135.829  006.750  000.838: require('notify.instance')
135.837  009.177  000.947: require('notify')
136.401  000.105  000.105: require('noice.util.lazy')
136.409  000.257  000.152: require('noice')
137.265  000.564  000.564: require('vim.health')
137.575  000.280  000.280: require('noice.config')
138.177  000.199  000.199: require('noice.util.call')
138.189  000.610  000.411: require('noice.util')
138.194  001.779  000.326: require('noice.health')
138.775  000.221  000.221: require('gitsigns.async')
139.262  000.482  000.482: require('gitsigns.config')
139.476  000.210  000.210: require('gitsigns.debug.log')
139.485  001.173  000.259: require('gitsigns')
140.500  000.578  000.578: require('treesitter-context.config')
140.549  000.901  000.323: require('treesitter-context')
141.349  000.195  000.195: require('treesitter-context.util')
141.589  000.228  000.228: require('treesitter-context.cache')
141.615  000.936  000.512: require('treesitter-context.context')
183.725  000.369  000.369: require('vim.lsp.log')
185.016  001.284  001.284: require('vim.lsp.protocol')
187.175  000.406  000.406: require('vim.lsp._snippet_grammar')
187.401  000.221  000.221: require('vim.highlight')
187.421  002.399  001.773: require('vim.lsp.util')
187.439  004.793  000.741: require('vim.lsp.handlers')
188.121  000.680  000.680: require('vim.lsp.rpc')
188.836  000.342  000.342: require('vim.lsp.sync')
188.844  000.719  000.377: require('vim.lsp._changetracking')
189.477  000.631  000.631: require('vim.lsp.semantic_tokens')
190.179  000.698  000.698: require('vim.lsp.buf')
190.624  000.441  000.441: require('vim.lsp.diagnostic')
191.008  000.380  000.380: require('vim.lsp.codelens')
191.437  000.426  000.426: require('vim.lsp.inlay_hint')
191.640  011.172  002.406: require('vim.lsp')
191.694  011.423  000.250: sourcing /home/omochice/.cache/dein/repos/github.com/neovim/nvim-lspconfig/plugin/lspconfig.lua
194.241  001.061  001.061: require('lspconfig.util')
194.942  000.695  000.695: require('lspconfig.async')
194.948  002.685  000.929: require('lspconfig.configs')
194.951  016.492  002.384: require('lspconfig')
197.746  000.186  000.186: require('mason-core.path')
198.370  000.283  000.283: require('mason-core.functional')
198.755  000.143  000.143: require('mason-core.functional.data')
198.763  000.376  000.234: require('mason-core.functional.function')
198.944  000.166  000.166: require('mason-core.functional.relation')
199.119  000.168  000.168: require('mason-core.functional.logic')
199.141  001.390  000.397: require('mason-core.platform')
199.898  000.755  000.755: require('mason.settings')
199.903  004.949  002.617: require('mason')
201.129  000.323  000.323: require('mason-core.functional.list')
201.352  000.217  000.217: require('mason-core.functional.string')
201.381  001.460  000.921: require('mason.api.command')
201.638  000.249  000.249: require('mason-registry.sources')
202.289  000.338  000.338: require('mason-core.log')
202.421  000.128  000.128: require('mason-lspconfig.settings')
202.429  000.771  000.304: require('mason-lspconfig')
202.760  000.119  000.119: require('mason-lspconfig.notify')
202.766  000.334  000.215: require('mason-lspconfig.lspconfig_hook')
203.247  000.197  000.197: require('mason-core.functional.table')
203.318  000.550  000.353: require('mason-lspconfig.mappings.server')
203.822  000.184  000.184: require('mason-core.EventEmitter')
204.035  000.210  000.210: require('mason-core.optional')
204.665  000.350  000.350: require('mason-core.async')
204.833  000.164  000.164: require('mason-core.async.uv')
204.846  000.808  000.294: require('mason-core.fs')
204.877  001.556  000.354: require('mason-registry')
205.004  000.124  000.124: require('mason-lspconfig.server_config_extensions')
205.781  000.774  000.774: require('lspconfig.server_configurations.omnisharp')
206.755  000.158  000.158: require('mason-core.functional.number')
206.790  000.506  000.348: require('mason-lspconfig.api.command')
206.993  000.091  000.091: require('vimrc/lsp/lua_ls')
207.771  000.753  000.753: require('lspconfig.server_configurations.lua_ls')
209.338  000.935  000.935: require('lspconfig.manager')
210.079  000.698  000.698: require('lspconfig.server_configurations.tsserver')
211.431  000.808  000.808: require('lspconfig.server_configurations.denols')
211.669  000.093  000.093: require('vimrc/lsp/denols')
212.531  000.689  000.689: require('lspconfig.server_configurations.gopls')
213.379  000.679  000.679: require('lspconfig.server_configurations.nushell')
213.780  000.057  000.057: require('vimrc.result-type')
213.786  000.248  000.191: require('vimrc/traditional-behavior-lsp')
214.922  000.750  000.750: sourcing /home/omochice/.cache/dein/repos/github.com/uga-rosa/ccc.nvim/plugin/ccc.lua
215.580  000.065  000.065: sourcing /home/omochice/.cache/dein/repos/github.com/nvim-treesitter/nvim-treesitter-context/plugin/treesitter-context.lua
216.092  000.207  000.207: require('nvim-treesitter-textobjects')
216.911  000.448  000.448: require('nvim-treesitter.textobjects.shared')
216.920  000.815  000.366: require('nvim-treesitter.textobjects.select')
217.425  000.204  000.204: require('nvim-treesitter.textobjects.attach')
217.733  000.304  000.304: require('nvim-treesitter.textobjects.repeatable_move')
217.761  000.815  000.307: require('nvim-treesitter.textobjects.move')
218.204  000.188  000.188: require('nvim-treesitter.textobjects.swap')
218.522  000.279  000.279: require('nvim-treesitter.textobjects.lsp_interop')
218.594  002.726  000.423: sourcing /home/omochice/.cache/dein/repos/github.com/nvim-treesitter/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
219.224  000.153  000.153: require('nvim-tree-docs.aniseed.autoload')
219.232  000.311  000.158: require('nvim-tree-docs.main')
219.241  000.337  000.026: sourcing /home/omochice/.cache/dein/repos/github.com/Omochice/nvim-tree-docs/plugin/nvim-tree-docs.vim
219.775  000.156  000.156: require('nvim-treesitter-playground')
219.859  000.315  000.159: sourcing /home/omochice/.cache/dein/repos/github.com/nvim-treesitter/playground/plugin/nvim-treesitter-playground.lua
221.402  001.252  001.252: sourcing /home/omochice/.cache/dein/repos/github.com/nvim-treesitter/nvim-treesitter/plugin/nvim-treesitter.lua
221.776  000.071  000.071: sourcing /home/omochice/.cache/dein/repos/github.com/lambdalisue/suda.vim/plugin/suda.vim
227.989  000.206  000.206: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/dtd.vim
228.061  000.590  000.384: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/xml.vim
229.132  000.298  000.298: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/javascript.vim
230.231  000.881  000.881: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/vb.vim
237.570  007.168  007.168: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/css.vim
239.109  011.778  002.841: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/html.vim
240.461  000.811  000.811: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/yaml.vim
240.568  013.385  000.796: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/markdown.vim
241.788  000.192  000.192: sourcing /home/omochice/.local/nvim/share/nvim/runtime/ftplugin/html.vim
242.355  001.180  000.988: sourcing /home/omochice/.local/nvim/share/nvim/runtime/ftplugin/markdown.vim
242.883  000.059  000.059: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/after/ftplugin/markdown.vim
244.199  000.204  000.204: require('nvim-treesitter.highlight')
244.932  000.466  000.466: require('vim.treesitter.highlighter')
248.916  000.562  000.562: require('nvim-tree-docs.internal')
250.573  000.225  000.225: require('nvim-treesitter-playground.utils')
250.582  000.509  000.284: require('nvim-treesitter-playground.printer')
251.115  000.370  000.370: require('nvim-treesitter.locals')
251.120  000.535  000.165: require('nvim-treesitter-playground.query')
251.377  000.255  000.255: require('nvim-treesitter-playground.promise')
251.429  002.334  001.035: require('nvim-treesitter-playground.internal')
258.789  000.054  000.054: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/gitbranch.vim
259.578  000.692  000.692: require('editorconfig')
259.703  000.118  000.118: require('vim.fs')
260.233  084.514: opening buffers
260.420  000.041  000.041: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/findroot.vim
261.092  000.330  000.330: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline.vim
262.458  000.039  000.039: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/tab.vim
263.173  000.154  000.154: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme.vim
264.934  002.109  001.955: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/powerline.vim
264.954  002.287  000.178: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/default.vim
268.290  000.155  000.155: sourcing /home/omochice/.cache/dein/repos/github.com/lambdalisue/suda.vim/autoload/suda.vim
268.351  005.267: BufEnter autocommands
268.359  000.008: editing files in windows
270.185  000.107  000.107: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/sonokai.vim
278.291  008.348  008.241: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/colors/sonokai.vim
280.451  001.280  001.280: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/sonokai.vim
284.326  000.586  000.586: require('noice.config.views')
284.945  000.480  000.480: require('noice.ui.msg')
284.951  000.619  000.139: require('noice.config.status')
285.329  000.366  000.366: require('noice.config.format')
285.500  000.153  000.153: require('noice.config.icons')
286.346  000.399  000.399: require('noice.config.preset')
287.090  000.177  000.177: require('noice.config.cmdline')
287.336  000.239  000.239: require('noice.config.highlights')
287.642  000.151  000.151: require('noice.config.routes')
288.158  000.120  000.120: require('noice.lsp')
288.280  000.101  000.101: require('noice.lsp.message')
288.461  000.165  000.165: require('noice.lsp.progress')
288.656  000.166  000.166: require('noice.commands')
288.959  000.247  000.247: require('noice.message.router')
289.414  000.194  000.194: require('nui.object')
289.482  000.518  000.325: require('noice.view')
289.777  000.075  000.075: require('noice.view.backend.split')
290.190  000.409  000.409: require('noice.view.nui')
291.286  000.414  000.414: require('vim.version')
292.610  002.075  001.661: require('nui.utils')
292.617  002.371  000.296: require('noice.util.nui')
293.264  000.212  000.212: require('nui.layout.utils')
293.270  000.559  000.347: require('nui.split.utils')
293.730  000.078  000.078: require('noice.view.backend.popup')
297.018  000.211  000.211: require('noice.view.backend.virtualtext')
297.294  000.165  000.165: require('noice.view.backend.mini')
298.091  000.317  000.317: require('noice.view.backend.notify')
298.382  000.125  000.125: require('noice.source.notify')
298.727  000.313  000.313: require('noice.util.hacks')
298.974  000.204  000.204: require('noice.ui')
299.152  000.128  000.128: require('noice.ui.popupmenu')
299.798  000.216  000.216: require('noice.text.block')
300.074  000.192  000.192: require('noice.message.filter')
300.079  000.673  000.265: require('noice.message')
300.100  000.944  000.271: require('noice.ui.cmdline')
300.251  012.358: VimEnter autocommands
300.294  000.042: UIEnter autocommands
1597.192  1296.678  1296.678: sourcing /home/omochice/.local/nvim/share/nvim/runtime/autoload/provider/clipboard.vim
1597.221  000.249: before starting main loop
1601.199  002.056  002.056: require('vim.filetype.detect')
1637.839  000.235  000.235: require('noice.message.manager')
1637.945  000.091  000.091: require('noice.ui.state')
1638.093  000.098  000.098: require('noice.util.stats')
1638.102  038.401: first screen update
1638.104  000.002: --- NVIM STARTED ---


times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.016  000.016: --- NVIM STARTING ---
000.314  000.297: event init
000.410  000.097: early init
000.508  000.098: locale set
000.578  000.070: init first window
000.951  000.373: inits 1
000.967  000.016: window checked
001.024  000.057: parsing arguments
001.759  000.082  000.082: require('vim.shared')
001.871  000.057  000.057: require('vim.inspect')
001.933  000.047  000.047: require('vim._options')
001.934  000.170  000.066: require('vim._editor')
001.936  000.332  000.080: require('vim._init_packages')
001.939  000.583: init lua interpreter
002.788  000.848: expanding arguments
002.846  000.058: inits 2
003.500  000.654: init highlight


times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.027  000.027: --- NVIM STARTING ---
000.605  000.579: event init
000.787  000.182: early init
000.985  000.198: locale set
001.078  000.093: init first window
001.649  000.571: inits 1
001.688  000.039: window checked
001.692  000.004: parsing arguments
002.650  000.075  000.075: require('vim.shared')
002.821  000.089  000.089: require('vim.inspect')
002.916  000.073  000.073: require('vim._options')
002.918  000.262  000.100: require('vim._editor')
002.921  000.444  000.107: require('vim._init_packages')
002.926  000.790: init lua interpreter
003.066  000.140: expanding arguments
003.115  000.049: inits 2
003.644  000.529: init highlight
003.648  000.003: waiting for UI
003.825  000.177: done waiting for UI
003.830  000.005: clear screen
003.910  000.012  000.012: require('vim.keymap')
004.438  000.603  000.591: require('vim._defaults')
004.446  000.013: init default mappings & autocommands
005.772  000.141  000.141: sourcing /home/omochice/.local/nvim/share/nvim/runtime/indent.vim
007.344  000.106  000.106: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/min.vim
014.789  000.089  000.089: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/synload.vim
015.115  000.021  000.021: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/ftdetect/dein.vim
015.184  000.314  000.293: sourcing /home/omochice/.local/nvim/share/nvim/runtime/filetype.lua
017.255  001.853  001.853: require('vim.filetype')
021.943  002.491  002.491: require('vim.filetype.detect')
022.108  007.935  003.187: sourcing /home/omochice/.local/nvim/share/nvim/runtime/syntax/syntax.vim
022.376  000.147  000.147: sourcing /home/omochice/.local/nvim/share/nvim/runtime/filetype.lua
022.545  000.055  000.055: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/after/ftplugin.vim
022.616  000.012  000.012: sourcing /home/omochice/.local/nvim/share/nvim/runtime/indent.vim
023.969  000.720  000.720: require('artemis')
026.396  000.018  000.018: require('vim.F')
026.474  002.231  002.213: require('vim.diagnostic')
027.197  000.375  000.375: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/autoload.vim
027.526  000.200  000.200: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein.vim
031.860  024.079  012.403: sourcing /home/omochice/.cache/dein/state_nvim.vim
032.404  000.349  000.349: sourcing /home/omochice/.cache/dein/repos/github.com/Shougo/dein.vim/autoload/dein/util.vim
037.223  000.043  000.043: sourcing /home/omochice/.config/nvim/autoload/myvimrc/fcitx.vim
037.291  031.264  006.687: sourcing /home/omochice/dotfiles/config/nvim/rc/vimrc
037.298  031.353  000.089: sourcing /home/omochice/.config/nvim/init.vim
037.302  001.362: sourcing vimrc file(s)
037.772  000.034  000.034: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/findroot.vim
037.841  000.040  000.040: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/gitbranch.vim
037.921  000.052  000.052: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/lightline.vim
038.055  000.105  000.105: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/plugin/seethrough.vim
038.247  000.012  000.012: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/rplugin.vim
038.327  000.056  000.056: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/editorconfig.lua
038.445  000.088  000.088: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/man.lua
038.537  000.062  000.062: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/nvim.lua
038.631  000.066  000.066: sourcing /home/omochice/.local/nvim/share/nvim/runtime/plugin/osc52.lua
038.658  000.841: loading rtp plugins
038.829  000.171: loading packages
038.852  000.023: loading after plugins
038.861  000.009: inits 3
043.145  004.283: reading ShaDa
043.347  000.203: opening buffers
043.780  000.145  000.145: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/findroot.vim
044.373  000.185  000.185: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/gitbranch.vim
045.535  000.793  000.793: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline.vim
048.448  000.070  000.070: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/tab.vim
049.191  000.264  000.264: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme.vim
051.348  002.607  002.343: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/powerline.vim
051.364  002.721  000.114: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/default.vim
055.454  008.193: BufEnter autocommands
055.470  000.017: editing files in windows
056.103  000.212  000.212: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/sonokai.vim
066.072  010.281  010.069: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/colors/sonokai.vim
068.162  001.290  001.290: sourcing /home/omochice/.cache/dein/.cache/init.vim/.dein/autoload/lightline/colorscheme/sonokai.vim
071.189  004.148: VimEnter autocommands
071.195  000.006: UIEnter autocommands
1458.736  1387.460  1387.460: sourcing /home/omochice/.local/nvim/share/nvim/runtime/autoload/provider/clipboard.vim
1458.768  000.113: before starting main loop
1459.275  000.507: first screen update
1459.279  000.004: --- NVIM STARTED ---


times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.044  000.044: --- NVIM STARTING ---
000.878  000.834: event init
001.149  000.271: early init
001.444  000.295: locale set
001.653  000.209: init first window
002.715  001.062: inits 1
002.757  000.043: window checked
002.765  000.007: parsing arguments
004.714  000.146  000.146: require('vim.shared')
005.058  000.170  000.170: require('vim.inspect')
005.244  000.142  000.142: require('vim._options')
005.249  000.522  000.211: require('vim._editor')
005.254  000.867  000.199: require('vim._init_packages')
005.276  001.644: init lua interpreter
007.537  002.261: expanding arguments
007.727  000.189: inits 2
009.767  002.040: init highlight

明らかに時間がかかっているのは以下の行。

1458.736  1387.460  1387.460: sourcing /home/omochice/.local/nvim/share/nvim/runtime/autoload/provider/clipboard.vim

1387msecもかかっているので中身を見てみる。

clipboard.vim

https://github.com/neovim/neovim/blob/950a0ac61c70362f168338b815675ac60b1d72dc/runtime/autoload/provider/clipboard.vim#L69 でパス探索をしている。

xselの探索に時間がかかっているみたいだったので決め打ちでg:clipboardを設定するようにした。

https://github.com/Omochice/dotfiles/commit/ef94ea1efbe28f472b8eadd83f90327f1bfc11d2

編集を提案