vimrc icon indicating copy to clipboard operation
vimrc copied to clipboard

Mac OS 安装配置时的问题

Open YangZ2020 opened this issue 1 year ago • 13 comments

使用命令行安装nvim配置:

Last login: Fri Sep 13 11:46:42 on ttys000 ❯ test -f ~/.config/nvim && mv ~/.config/nvim{,.backup} git clone https://github.com/archibate/vimrc ~/.config/nvim git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim bash ~/.config/nvim/install_deps.sh fatal: destination path '/Users/zyzy/.config/nvim' already exists and is not an empty directory. fatal: destination path '/Users/zyzy/.local/share/nvim/site/pack/packer/start/packer.nvim' already exists and is not an empty directory. -- Automatically installing ArchVim system dependencies... -- Linux distro detected: MacOS ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/formul #=#=# ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/cask.j #=#=# Warning: ripgrep 14.1.1 is already installed and up-to-date. To reinstall 14.1.1, run: brew reinstall ripgrep Warning: fzf 0.55.0 is already installed and up-to-date. To reinstall 0.55.0, run: brew reinstall fzf Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the --cask flag. Warning: cmake 3.30.3 is already installed and up-to-date. To reinstall 3.30.3, run: brew reinstall cmake Warning: make 4.4.1 is already installed and up-to-date. To reinstall 4.4.1, run: brew reinstall make Warning: git 2.46.0 is already installed and up-to-date. To reinstall 2.46.0, run: brew reinstall git Warning: gcc 14.2.0 is already installed and up-to-date. To reinstall 14.2.0, run: brew reinstall gcc Warning: [email protected] 3.12.6 is already installed and up-to-date. To reinstall 3.12.6, run: brew reinstall [email protected] Warning: curl 8.10.0 is already installed and up-to-date. To reinstall 8.10.0, run: brew reinstall curl Warning: No available formula with the name "clangd". Did you mean clangql or cling? ==> Searching for similarly named formulae and casks... ==> Formulae clangql cling

To install clangql, run: brew install clangql Warning: node 22.8.0 is already installed and up-to-date. To reinstall 22.8.0, run: brew reinstall node Warning: node 22.8.0 is already installed and up-to-date. To reinstall 22.8.0, run: brew reinstall node Warning: lua-language-server 3.10.6 is already installed and up-to-date. To reinstall 3.10.6, run: brew reinstall lua-language-server Requirement already satisfied: pyright in /Users/zyzy/anaconda3/lib/python3.10/site-packages (1.1.380) Requirement already satisfied: nodeenv>=1.6.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pyright) (1.9.1) Requirement already satisfied: cmake-language-server in /Users/zyzy/anaconda3/lib/python3.10/site-packages (0.1.10) Requirement already satisfied: pygls>=1.1.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cmake-language-server) (1.3.1) Requirement already satisfied: cattrs>=23.1.2 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pygls>=1.1.1->cmake-language-server) (24.1.1) Requirement already satisfied: lsprotocol==2023.0.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pygls>=1.1.1->cmake-language-server) (2023.0.1) Requirement already satisfied: attrs>=21.3.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from lsprotocol==2023.0.1->pygls>=1.1.1->cmake-language-server) (24.2.0) Requirement already satisfied: typing-extensions!=4.6.3,>=4.1.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cattrs>=23.1.2->pygls>=1.1.1->cmake-language-server) (4.4.0) Requirement already satisfied: exceptiongroup>=1.1.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cattrs>=23.1.2->pygls>=1.1.1->cmake-language-server) (1.2.2) Requirement already satisfied: pynvim in /Users/zyzy/anaconda3/lib/python3.10/site-packages (0.5.0) Requirement already satisfied: greenlet>=3.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pynvim) (3.1.0) Requirement already satisfied: msgpack>=0.5.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pynvim) (1.0.3) -- System dependency installation complete!    ~   ✔  22s   base   11:48:23 

键入nvim命令报错: Error detected while processing /Users/zyzy/.config/nvim/init.vim: line 3: E5108: Error executing lua vim/_editor.lua:0: /Users/zyzy/.config/nvim/init.vim[3]..nvim_exec2() called at /Users/zyzy/.config/nvim/init.v im:3: Vim(colorscheme):E185: Cannot find color scheme 'zephyr' stack traceback: [C]: in function 'nvim_exec2' vim/_editor.lua: in function 'cmd' /Users/zyzy/.config/nvim/lua/archvim/options.lua:149: in main chunk [C]: in function 'require' /Users/zyzy/.config/nvim/lua/archvim/init.lua:5: in main chunk [C]: in function 'require' [string ":lua"]:1: in main chunk Press ENTER or type command to continue

求救 …… 现在跟开宝箱的时候钥匙死活捅不进去一样难受 需要提供更多信息的话请吩咐

YangZ2020 avatar Sep 13 '24 04:09 YangZ2020

/Users/zyzy/.config/nvim/lua/archvim/options.lua:149

删除这一行即可 colorscheme zephyr

无法顺畅的大口呼吸,是活着的最好证明

---原始邮件--- 发件人: @.> 发送时间: 2024年9月13日(周五) 中午12:35 收件人: @.>; 抄送: @.***>; 主题: [archibate/vimrc] Mac OS 安装配置时的问题 (Issue #34)

使用命令行安装nvim配置:

Last login: Fri Sep 13 11:46:42 on ttys000 ❯ test -f ~/.config/nvim && mv ~/.config/nvim{,.backup} git clone https://github.com/archibate/vimrc ~/.config/nvim git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim bash ~/.config/nvim/install_deps.sh fatal: destination path '/Users/zyzy/.config/nvim' already exists and is not an empty directory. fatal: destination path '/Users/zyzy/.local/share/nvim/site/pack/packer/start/packer.nvim' already exists and is not an empty directory. -- Automatically installing ArchVim system dependencies... -- Linux distro detected: MacOS ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/formul #=#=# ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/cask.j #=#=# Warning: ripgrep 14.1.1 is already installed and up-to-date. To reinstall 14.1.1, run: brew reinstall ripgrep Warning: fzf 0.55.0 is already installed and up-to-date. To reinstall 0.55.0, run: brew reinstall fzf Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the --cask flag. Warning: cmake 3.30.3 is already installed and up-to-date. To reinstall 3.30.3, run: brew reinstall cmake Warning: make 4.4.1 is already installed and up-to-date. To reinstall 4.4.1, run: brew reinstall make Warning: git 2.46.0 is already installed and up-to-date. To reinstall 2.46.0, run: brew reinstall git Warning: gcc 14.2.0 is already installed and up-to-date. To reinstall 14.2.0, run: brew reinstall gcc Warning: @.*** 3.12.6 is already installed and up-to-date. To reinstall 3.12.6, run: brew reinstall @.*** Warning: curl 8.10.0 is already installed and up-to-date. To reinstall 8.10.0, run: brew reinstall curl Warning: No available formula with the name "clangd". Did you mean clangql or cling? ==> Searching for similarly named formulae and casks... ==> Formulae clangql cling

To install clangql, run: brew install clangql Warning: node 22.8.0 is already installed and up-to-date. To reinstall 22.8.0, run: brew reinstall node Warning: node 22.8.0 is already installed and up-to-date. To reinstall 22.8.0, run: brew reinstall node Warning: lua-language-server 3.10.6 is already installed and up-to-date. To reinstall 3.10.6, run: brew reinstall lua-language-server Requirement already satisfied: pyright in /Users/zyzy/anaconda3/lib/python3.10/site-packages (1.1.380) Requirement already satisfied: nodeenv>=1.6.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pyright) (1.9.1) Requirement already satisfied: cmake-language-server in /Users/zyzy/anaconda3/lib/python3.10/site-packages (0.1.10) Requirement already satisfied: pygls>=1.1.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cmake-language-server) (1.3.1) Requirement already satisfied: cattrs>=23.1.2 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pygls>=1.1.1->cmake-language-server) (24.1.1) Requirement already satisfied: lsprotocol==2023.0.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pygls>=1.1.1->cmake-language-server) (2023.0.1) Requirement already satisfied: attrs>=21.3.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from lsprotocol==2023.0.1->pygls>=1.1.1->cmake-language-server) (24.2.0) Requirement already satisfied: typing-extensions!=4.6.3,>=4.1.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cattrs>=23.1.2->pygls>=1.1.1->cmake-language-server) (4.4.0) Requirement already satisfied: exceptiongroup>=1.1.1 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from cattrs>=23.1.2->pygls>=1.1.1->cmake-language-server) (1.2.2) Requirement already satisfied: pynvim in /Users/zyzy/anaconda3/lib/python3.10/site-packages (0.5.0) Requirement already satisfied: greenlet>=3.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pynvim) (3.1.0) Requirement already satisfied: msgpack>=0.5.0 in /Users/zyzy/anaconda3/lib/python3.10/site-packages (from pynvim) (1.0.3) -- System dependency installation complete!    ~   ✔  22s   base   11:48:23 

键入nvim命令报错: Error detected while processing /Users/zyzy/.config/nvim/init.vim: line 3: E5108: Error executing lua vim/_editor.lua:0: /Users/zyzy/.config/nvim/init.vim[3]..nvim_exec2() called at /Users/zyzy/.config/nvim/init.v im:3: Vim(colorscheme):E185: Cannot find color scheme 'zephyr' stack traceback: [C]: in function 'nvim_exec2' vim/_editor.lua: in function 'cmd' /Users/zyzy/.config/nvim/lua/archvim/options.lua:149: in main chunk [C]: in function 'require' /Users/zyzy/.config/nvim/lua/archvim/init.lua:5: in main chunk [C]: in function 'require' [string ":lua"]:1: in main chunk Press ENTER or type command to continue

求救 …… 现在跟开宝箱的时候钥匙死活捅不进去一样难受 需要提供更多信息的话请吩咐

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

archibate avatar Sep 13 '24 10:09 archibate

删除这行之后,又反复运行:PackerUpdate :PackerCompile等,最后:checkhealth结果如下。几个Error影响使用吗?

============================================================================== dap: require("dap.health").check()

dap: Adapters ~

dap.adapter: node2 ~

  • OK is executable: node

dap.adapter: python ~

  • Adapter is a function. Can't validate it

dap.adapter: bashdb ~

  • ERROR command is not executable. Check path and permissions. Use vim.fn.expand to handle ~ or $HOME: /Users/zyzy/.local/share/nvim/mason/packages/bash-debug-adapter/bash-debug-adapter

dap.adapter: codelldb ~

  • ERROR command is not executable. Check path and permissions. Use vim.fn.expand to handle ~ or $HOME: /Users/zyzy/.local/share/nvim/mason/packages/codelldb/codelldb

dap: Sessions ~

  • OK No active sessions

============================================================================== diffview: require("diffview.health").check()

Checking plugin dependencies ~

  • WARNING Optional dependency 'nvim-web-devicons' not found.

Checking VCS tools ~

  • The plugin requires at least one of the supported VCS tools to be valid.
  • OK Git found.
  • OK Git is up-to-date. (2.46.0)
  • WARNING Configured hg_cmd is not executable: 'hg'

============================================================================== fzf_lua: health#fzf_lua#check

fzf-lua [required] ~

  • OK 'fzf' 0.55.0 (brew)
  • OK 'git' git version 2.46.0
  • OK 'rg' ripgrep 14.1.1
  • OK 'find' find: illegal option -- -

fzf-lua [optional] ~

  • WARNING nvim-web-devicons not found
  • OK 'rg' ripgrep 14.1.1

fzf-lua [optional:media] ~

  • WARNING 'viu' not found
  • WARNING 'chafa' not found
  • WARNING 'ueberzugpp' not found

fzf-lua [env] ~

  • OK FZF_DEFAULT_OPTS is not set
  • OK FZF_DEFAULT_OPTS_FILE is not set

============================================================================== hop: require("hop.health").check()

Ensuring keys are unique ~

  • OK Keys are unique

Checking for deprecated features ~

  • OK All good

============================================================================== luasnip: require("luasnip.health").check()

luasnip ~

  • OK jsregexp is installed

============================================================================== mason: require("mason.health").check()

mason.nvim ~

  • OK mason.nvim version v1.10.0
  • OK PATH: prepend
  • OK Providers: mason.providers.registry-api mason.providers.client
  • OK neovim version >= 0.7.0

mason.nvim [Registries] ~

  • OK Registry github.com/mason-org/mason-registry version: 2024-09-13-fierce-rabbi is installed.

mason.nvim [Core utils] ~

  • OK unzip: UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
  • OK wget: GNU Wget 1.24.5 built on darwin23.2.0.
  • OK curl: curl 7.87.0 (arm64-apple-darwin20.0.0) libcurl/7.87.0 OpenSSL/1.1.1u zlib/1.2.13 libssh2/1.10.0 nghttp2/1.46.0
  • OK gzip: Apple gzip 430.140.2
  • OK tar: bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
  • OK bash: GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
  • OK sh: Ok

mason.nvim [Languages] ~

  • WARNING Go: not available
    • ADVICE:
      • spawn: go failed with exit code - and signal -. go is not executable
  • WARNING Composer: not available
    • ADVICE:
      • spawn: composer failed with exit code - and signal -. composer is not executable
  • WARNING PHP: not available
    • ADVICE:
      • spawn: php failed with exit code - and signal -. php is not executable
  • WARNING cargo: not available
    • ADVICE:
      • spawn: cargo failed with exit code - and signal -. cargo is not executable
  • WARNING luarocks: not available
    • ADVICE:
      • spawn: luarocks failed with exit code - and signal -. luarocks is not executable
  • OK Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
  • OK RubyGem: 3.4.22
  • WARNING julia: not available
    • ADVICE:
      • spawn: julia failed with exit code - and signal -. julia is not executable
  • OK python: Python 3.10.9
  • OK node: v22.8.0
  • OK npm: 10.8.2
  • OK java: openjdk version "21.0.1" 2023-10-17
  • OK javac: javac 21.0.1
  • OK pip: pip 22.3.1 from /Users/zyzy/anaconda3/lib/python3.10/site-packages/pip (python 3.10)
  • OK python venv: Ok

mason.nvim [GitHub] ~

  • OK GitHub API rate limit. Used: 2. Remaining: 58. Limit: 60. Reset: Fri Sep 13 23:26:41 2024. Install and authenticate via gh-cli to increase rate limit.

============================================================================== neoconf: require("neoconf.health").check()

neoconf.nvim ~

  • WARNING jsonc parser for tree-sitter is not installed. Jsonc highlighting might be broken
  • WARNING neodev.nvim is not installed. You won't get any proper completion for your Neovim config.
  • OK lspconfig is installed
  • WARNING lspconfig jsonls is not installed? You won't get any auto completion in your settings files
  • OK lspconfig lua_ls is installed

============================================================================== nvim: require("nvim.health").check()

Configuration ~

  • OK no issues found

Runtime ~

  • OK $VIMRUNTIME: /opt/homebrew/Cellar/neovim/0.10.1/share/nvim/runtime

Performance ~

  • OK Build type: Release

Remote Plugins ~

  • OK Up to date

terminal ~

  • key_backspace (kbs) terminfo entry: key_backspace=^H
  • key_dc (kdch1) terminfo entry: key_dc=\E[3~
  • $TERM_PROGRAM="iTerm.app"
  • $COLORTERM="truecolor"

External Tools ~

  • OK ripgrep 14.1.1 (/opt/homebrew/bin/rg)

============================================================================== nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~

  • OK tree-sitter found 0.23.0 (parser generator, only needed for :TSInstallFromGrammar)
  • OK node found v22.8.0 (only needed for :TSInstallFromGrammar)
  • OK git executable found.
  • OK cc executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 15.0.0 (clang-1500.3.9.4)
  • OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info: { machine = "arm64", release = "23.6.0", sysname = "Darwin", version = "Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000" } ~

Parser/Features H L F I J

  • bash ✓ ✓ ✓ . ✓
  • c ✓ ✓ ✓ ✓ ✓
  • cmake ✓ . ✓ ✓ ✓
  • cpp ✓ ✓ ✓ ✓ ✓
  • css ✓ . ✓ ✓ ✓
  • cuda ✓ ✓ ✓ ✓ ✓
  • diff ✓ . ✓ . ✓
  • glsl ✓ ✓ ✓ ✓ ✓
  • html ✓ ✓ ✓ ✓ ✓
  • javascript ✓ ✓ ✓ ✓ ✓
  • json ✓ ✓ ✓ ✓ .
  • lua ✓ ✓ ✓ ✓ ✓
  • markdown ✓ . ✓ ✓ ✓
  • markdown_inline ✓ . . . ✓
  • python ✓ ✓ ✓ ✓ ✓
  • query ✓ ✓ ✓ ✓ ✓
  • regex ✓ . . . .
  • vim ✓ ✓ ✓ . ✓
  • vimdoc ✓ . . . ✓

Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~

============================================================================== provider.clipboard: require("provider.clipboard.health").check()

Clipboard (optional) ~

  • OK Clipboard tool found: pbcopy

============================================================================== provider.node: require("provider.node.health").check()

Node.js provider (optional) ~

  • Node.js: v22.8.0

  • WARNING Missing "neovim" npm (or yarn, pnpm) package.

    • ADVICE:
      • Run in shell: npm install -g neovim
      • Run in shell (if you use yarn): yarn global add neovim
      • Run in shell (if you use pnpm): pnpm install -g neovim
      • You may disable this provider (and warning) by adding let g:loaded_node_provider = 0 to your init.vim

============================================================================== provider.perl: require("provider.perl.health").check()

Perl provider (optional) ~

  • WARNING "Neovim::Ext" cpan module is not installed
    • ADVICE:
      • See :help |provider-perl| for more information.
      • You may disable this provider (and warning) by adding let g:loaded_perl_provider = 0 to your init.vim
  • WARNING No usable perl executable found

============================================================================== provider.python: require("provider.python.health").check()

Python 3 provider (optional) ~

  • g:python3_host_prog is not set. Searching for python3 in the environment.
  • Executable: /Users/zyzy/anaconda3/bin/python3
  • Python version: 3.10.9
  • pynvim version: 0.5.0
  • OK Latest pynvim is installed.

Python virtualenv ~

  • OK no $VIRTUAL_ENV

============================================================================== provider.ruby: require("provider.ruby.health").check()

Ruby provider (optional) ~

  • Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
  • WARNING neovim-ruby-host not found.
    • ADVICE:
      • Run gem install neovim to ensure the neovim RubyGem is installed.
      • Run gem environment to ensure the gem bin directory is in $PATH.
      • If you are using rvm/rbenv/chruby, try "rehashing".
      • See :help |g:ruby_host_prog| for non-standard gem installations.
      • You may disable this provider (and warning) by adding let g:loaded_ruby_provider = 0 to your init.vim

============================================================================== telescope: require("telescope.health").check()

Checking for required plugins ~

  • OK plenary installed.
  • OK nvim-treesitter installed.

Checking external dependencies ~

  • OK rg: found ripgrep 14.1.1
  • WARNING fd: not found. Install sharkdp/fd for extended capabilities

===== Installed extensions ===== ~

Telescope Extension: cmake_tools ~

  • No healthcheck provided

============================================================================== vim.lsp: require("vim.lsp.health").check()

  • LSP log level : OFF
  • Log path: /Users/zyzy/.local/state/nvim/lsp.log
  • Log size: 0 KB

vim.lsp: Active Clients ~

  • No active clients

vim.lsp: File Watcher ~

  • file watching "(workspace/didChangeWatchedFiles)" disabled on all clients

vim.lsp: Position Encodings ~

  • No active clients

============================================================================== vim.treesitter: require("vim.treesitter.health").check()

  • Nvim runtime ABI version: 14
  • OK Parser: bash ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/bash.so
  • OK Parser: c ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/c.so
  • OK Parser: cmake ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/cmake.so
  • OK Parser: cpp ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/cpp.so
  • OK Parser: css ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/css.so
  • OK Parser: cuda ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/cuda.so
  • OK Parser: diff ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/diff.so
  • OK Parser: glsl ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/glsl.so
  • OK Parser: html ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/html.so
  • OK Parser: javascript ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/javascript.so
  • OK Parser: json ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/json.so
  • OK Parser: lua ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/lua.so
  • OK Parser: markdown ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/markdown.so
  • OK Parser: python ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/python.so
  • OK Parser: regex ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/regex.so
  • OK Parser: vim ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/vim.so
  • OK Parser: vimdoc ABI: 14, path: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/vimdoc.so
  • OK Parser: c ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/c.so
  • OK Parser: lua ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/lua.so
  • OK Parser: markdown ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/markdown.so
  • OK Parser: markdown_inline ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/markdown_inline.so
  • OK Parser: query ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/query.so
  • OK Parser: vim ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/vim.so
  • OK Parser: vimdoc ABI: 14, path: /opt/homebrew/Cellar/neovim/0.10.1/lib/nvim/parser/vimdoc.so

============================================================================== which-key: require("which-key.health").check()

  • OK Most of these checks are for informational purposes only. WARNINGS should be treated as a warning, and don't necessarily indicate a problem with your config. Please |DON't| report these warnings as an issue.

Checking your config ~

  • WARNING |mini.icons| is not installed
  • WARNING |nvim-web-devicons| is not installed
  • WARNING Keymap icon support will be limited.

Checking for issues with your mappings ~

  • OK No issues reported

checking for overlapping keymaps ~

  • WARNING In mode n, overlaps with <cs%>:

    • : Change a surrounding pair
  • WARNING In mode n, overlaps with <ds%>:

    • : Delete a surrounding pair
  • WARNING In mode n, <yS> overlaps with <ySS>:

    • <yS>: Add a surrounding pair around a motion, on new lines (normal mode)
    • <ySS>: Add a surrounding pair around the current line, on new lines (normal mode)
  • WARNING In mode n, overlaps with :

    • : Add a surrounding pair around a motion (normal mode)
    • : Add a surrounding pair around the current line (normal mode)
  • WARNING In mode n, overlaps with :

  • OK Overlapping keymaps are only reported for informational purposes. This doesn't necessarily mean there is a problem with your config.

Checking for duplicate mappings ~

  • OK No duplicate mappings found

YangZ2020 avatar Sep 13 '24 14:09 YangZ2020

/Users/zyzy/.local/share/nvim/mason/packages/codelldb/codelldb 可以看一下这个文件存在吗? 另外,ls一下这个目录: /Users/zyzy/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/ 里面只有so文件吗?运行:TSInstall cpp后,是不是多了一个cpp.dylib?

archibate avatar Sep 14 '24 03:09 archibate

1. codelldb不存在 ls ~/.local/share/nvim/mason/packages/ clangd pyright cmake-language-server rust-analyzer lua-language-server typescript-language-server

2.parser目录下只有so文件,运行:TSInstall cpp后(nvim中reinstall,没有报错),也没有cpp.dylib;ls ……parser目录始终内容如下: ls ~/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/ bash.so css.so html.so markdown.so vimdoc.so c.so cuda.so javascript.so python.so cmake.so diff.so json.so regex.so cpp.so glsl.so lua.so vim.so

附上命令行截图: image

YangZ2020 avatar Sep 14 '24 09:09 YangZ2020

附上 :MasonLog 的结果:

[ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""pyright"". [ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""lua-language-server"". [ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""rust-analyzer"". [ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""cmake-language-server"". [ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""typescript-language-server"". [ERROR Fri Sep 13 19:30:22 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""clangd"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""pyright"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""lua-language-server"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""rust-analyzer"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""cmake-language-server"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""typescript-language-server"". [ERROR Fri Sep 13 19:31:26 2024] ...pack/packer/start/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package ""clangd"". [ERROR Fri Sep 13 19:31:26 2024] ...acker/start/mason.nvim/lua/mason-core/providers/init.lua:81: Provider "github" "get_latest_release" failed: spawn: wget failed with exit code 0 and signal 15. [INFO Fri Sep 13 19:31:52 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=clangd) {} [INFO Fri Sep 13 19:31:52 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {} [INFO Fri Sep 13 19:31:52 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {} [ERROR Fri Sep 13 19:31:55 2024] ...rt/mason.nvim/lua/mason-core/installer/registry/init.lua:186: Failed to download schemas Package(name=lua-language-server) spawn: wget failed with exit code 4 and signal 0. [INFO Fri Sep 13 19:31:55 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=lua-language-server) [ERROR Fri Sep 13 19:32:00 2024] ...rt/mason.nvim/lua/mason-core/installer/registry/init.lua:186: Failed to download schemas Package(name=clangd) spawn: wget failed with exit code 4 and signal 0. [INFO Fri Sep 13 19:32:00 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=clangd) [ERROR Fri Sep 13 19:32:31 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=pyright) error="Installation was aborted." [INFO Fri Sep 13 19:32:33 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {} [INFO Fri Sep 13 19:32:33 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=rust-analyzer) {} [INFO Fri Sep 13 19:32:33 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=cmake-language-server) {} [INFO Fri Sep 13 19:32:33 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=typescript-language-server) {} [ERROR Fri Sep 13 19:32:39 2024] ...rt/mason.nvim/lua/mason-core/installer/registry/init.lua:186: Failed to download schemas Package(name=typescript-language-server) spawn: wget failed with exit code 4 and signal 0. [INFO Fri Sep 13 19:32:39 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=typescript-language-server) [ERROR Fri Sep 13 19:32:39 2024] ...rt/mason.nvim/lua/mason-core/installer/registry/init.lua:186: Failed to download schemas Package(name=rust-analyzer) spawn: wget failed with exit code 4 and signal 0. [INFO Fri Sep 13 19:32:39 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=rust-analyzer) [INFO Fri Sep 13 19:32:43 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=cmake-language-server) [INFO Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {} [ERROR Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:61: Lockfile already exists. Package(name=pyright) [ERROR Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=pyright) error="Lockfile exists, installation is already running in another process (pid: 14612). Run with :MasonInstall --force to bypass." [INFO Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {} [ERROR Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:61: Lockfile already exists. Package(name=pyright) [ERROR Fri Sep 13 19:32:54 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=pyright) error="Lockfile exists, installation is already running in another process (pid: 14612). Run with :MasonInstall --force to bypass." [ERROR Fri Sep 13 19:32:56 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=pyright) error="Installation was aborted." [INFO Fri Sep 13 21:01:23 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {} [ERROR Fri Sep 13 21:02:41 2024] ...rt/mason.nvim/lua/mason-core/installer/registry/init.lua:186: Failed to download schemas Package(name=pyright) spawn: wget failed with exit code 4 and signal 0. [INFO Fri Sep 13 21:02:41 2024] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=pyright)

YangZ2020 avatar Sep 15 '24 13:09 YangZ2020

谢谢你,我决定把mason去掉了,反正我的脚本已经自动安装了clangd,没必要再让mason钩叫。

archibate avatar Sep 17 '24 08:09 archibate

MacOS配置

硬件:Apple M1 Pro 16GB OS:15.0 (24A335) 终端:Iterm2(3.5.4) zsh

暂存的问题:

——————————————————————

  1. mi输入之后如下图,mif和maf没有问题;mic和mac没有反应。 image
  2. UI的按钮只有带爬虫的图标会报下面的错,其余按钮都是正常的;
 image
  3. 窗口调整位置(Alt+hjkl),没有反应,可能是Mac的opt(Alt)键被截获了?
  4. 2gt 2gb尚未支持;(g space足够舒适)
  5. 插入模式下alt+s { 添加括号没反应。可能是由于沙雕输入法,会先把opt+s换成一个希腊字母,所以出不来;ctrl+s{是OK的。

——————————————————————

nvim显示效果:

image

已经测试过的功能:(OK代表没问题,NO代表和视频效果不一致,便于搜索)

jk转为普通模式:OK q退出:OK gd跳转:OK gsc查看简介:OK gsf查看函数:OK .b查看所有buffer:OK ,k全局搜索:OK ,l列出文件:OK 空格快捷跳转:OK vaf选中所有函数,vif选中函数内容:OK va”,vi”选中字符串:OK vi<,viws” :OK cs<“ : OK g=格式化:OK F4保存:OK F2 F3左右移动,OK gt gb文件左右移动,OK 2gt 2gb尚未支持,NO gst和gsT查看基类/子类,OK cmakeGenerate按钮,cmakeBuild按钮,OK UI的按钮只有带爬虫的图标会报下面的错,其余按钮都是正常的;NO
 cmr运行,OK; ctrl t 开关终端,OK; gn全体改名,OK f6整理报错,OK;gw,OK gss编辑期错误,gw快速修改,OK; gsp打开文件目录树,OK; gr搜索函数使用位置,OK; ctrl +hjkl,窗口间跳转,OK; 窗口调整位置,没有反应,可能是Mac的opt键被截获了?NO gso 查看大纲,OK: git按钮,文件树按钮,OK; vah圈定赋值语句,vih,OK; vai圈定函数调用,OK; vii圈定函数参数,OK; 显示参数名字,gsi开关,OK; [p, ]p 跳转前后参数;OK; mh,ml,mj,mk,参数位置调整,上下行调整,OK ,o,,k ,l等等,OK maf,mif,OK mac,mic移动整个类,没试出来,NO gB gT ,移动窗口,OK g backSpace关闭文件,OK gy直接跳转到定义,OK gz列出变量/函数声明,定义,应用;OK K看文档,OK; 函数参数输入提示,OK; gcc注释语句;OK; gcal注释多行语句,OK; 50 Ctrl t,F8 toggleTerm,OK; 51 命令行模式下gf直接打开文件到指定位置,OK; 52 gx打开本地目录,OK; 53 g<C-t>等关闭标签页,OK; 54 g space 跳转到某个标签页,OK; 55 ,l,,L寻找文件,Cmake文件,OK; 56 ,O寻找Cmake格式的文件,OK; 57. [f, ]f, 函数间跳转,OK; 58. vaws>,ysiW>,添加括号,OK; 59 vaWst,html添加括号,OK; 60 viWsta herf=“…..”,添加tag,OK; 61 插入模式下 ctrl+s {,OK; 62 插入模式下alt+s { 由于沙雕输入法会先把opt+s换成一个希腊字母,所以出不来。NO 63. gv 回到当初选中的位置,OK; 64 gi回到插入的位置,OK; 65 选择带~的函数时自动添加头文件,OK;

One word:

伟大

YangZ2020 avatar Sep 17 '24 13:09 YangZ2020

运行 :TSInstall cpp 应该可以解决mac,mic的问题。

archibate avatar Sep 17 '24 14:09 archibate

窗口调整位置,没试出来,Warning,是什么warning?

archibate avatar Sep 17 '24 14:09 archibate

视频中介绍的内容基本都测完了,更新在: https://github.com/archibate/vimrc/issues/34#issuecomment-2355738824 之前Warning的说法不准确,已经修正了;mic和mac尚未Work。

YangZ2020 avatar Sep 18 '24 05:09 YangZ2020

对不起!我漏加了mac和mic,晚上到家我会重新发布一份正确的。 https://github.com/archibate/vimrc/commit/1e6b2800e9287802ccee1503fc30e672d0c912bf

Mac的opt确实有点问题,要不我把Alt的键位都换成Ctrl+Shift吧? https://github.com/alacritty/alacritty/issues/4048

archibate avatar Sep 18 '24 05:09 archibate

带爬虫的播放按钮是调试,需要安装codelldb,这部分我的脚本里还没来得及写,如果你知道brew怎么安装codelldb的话,可以这里留言一下,晚上我就加上。

archibate avatar Sep 18 '24 05:09 archibate

带爬虫的播放按钮是调试,需要安装codelldb,这部分我的脚本里还没来得及写,如果你知道brew怎么安装codelldb的话,可以这里留言一下,晚上我就加上。

sorry,我不会。也许下面链接会有启发: image https://wojciechkulik.pl/ios/the-complete-guide-to-ios-macos-development-in-neovim

YangZ2020 avatar Sep 18 '24 06:09 YangZ2020