eggtoopain / Neovim-Configuration-Tutorial

MIT License
264 stars 89 forks source link

启动时报错 #10

Open n-WN opened 7 months ago

n-WN commented 7 months ago

使用lazy分支下配置,每次启动nvim都会跑一次

[nvim-treesitter] [15/15] treesitter parser for cpp has been installed

这是说明安装成功吗,但是为什么每次启动都会从 [1/15] 跑到 [15/15] 以及启动时会提示

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SN
R>1_LoadFTPlugin[20]..script /usr/share/nvim/runtime/ftplugin/lua.lua: Vim(runtime):E5113: Error while calling lua chunk: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:104: no parser for 'lua' languag
e, see :help treesitter-parsers
stack traceback:
        [C]: in function 'error'
        /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:104: in function 'add'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser'
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser'
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:416: in function 'start'
        /usr/share/nvim/runtime/ftplugin/lua.lua:2: in main chunk
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
Press ENTER or type command to continue

以下是 :Lazy 输出


    5 -- 插件
    6 require("plugin   lazy.nvim 󰒲   Install (I)   Update (U)   Sync (S)   Clean (X)   Check (C)   Log (L)   Restore (R)   Profile (P)   Debug (D)   Help (?)
    7 require("plugin
    8 require("plugin  Total: 23 plugins
    9 require("plugin
   10 require("plugin  Loaded (23)
   11 require("plugin    ● bufferline.nvim 0.75ms  start
   12 require("plugin    ● cmp-nvim-lsp 0.22ms  start
   13 require("plugin    ● cmp-path 0.19ms  start
   14 require("plugin    ● cmp_luasnip 0.55ms  start
   15 require("plugin    ● Comment.nvim 4.31ms  start
~                        ● friendly-snippets 0.21ms  start
~                        ● gitsigns.nvim 0.54ms  start
~                        ● lazy.nvim 66.7ms  init.lua
~                        ● lualine.nvim 0.65ms  start
~                        ● LuaSnip 29.92ms  start
~                        ● mason-lspconfig.nvim 0.21ms  start
~                        ● mason.nvim 0.48ms  start
~                        ● nvim-autopairs 0.36ms  start
~                        ● nvim-cmp 10.65ms  start
~                        ● nvim-lspconfig 17.61ms  start
~                        ● nvim-tree.lua 0.25ms  start
~                        ● nvim-treesitter 73.96ms  start
~                        ● nvim-ts-rainbow 2.32ms  start
~                        ● nvim-web-devicons 1.59ms  start
~                        ● plenary.nvim 0.71ms  telescope.nvim
~                        ● telescope.nvim 8.12ms  start
~                        ● tokyonight.nvim 0.44ms  start
~                        ● vim-tmux-navigator 2.46ms  start
~
~
~
~
~
~
~
~
~
~
~
JimsXJ commented 5 months ago

改treesittter.lua文件中的rainbow={enable=false}