mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 04

4.1 init.vim

init.vim 放置到下面

:echo stdpath('config')

~\AppData\Local\nvim

4.2 plug

https://github.com/junegunn/vim-plug

plug.vim 放置到下面

~\AppData\Local\nvim-data\site\autoload

4.3 :PlugInstall

4.3.1 网络问题

git proxy

4.3.2 process

4.3.3 telescope-fzf-native.nvim

"Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
Plug 'nvim-telescope/telescope-fzf-native.nvim'
" msys build manually
Error detected while processing C:\Users\dev\AppData\Local\nvim\init.vim:
line  518:
E5108: Error executing lua ...lugged\telescope.nvim/lua/telescope/_extensions/init.lua:10: 'fzf' extension doesn't exist or isn't installed: ...m-data\plugged\telescope-fzf-native.nvim/lua/fzf_lib.lua:11: cannot load module 'C:\Users\dev\AppData\Local\nvim-data\plugged\telescope-fzf-native.nvim/lua/../build/libfzf.dll': The specified module could not be found.
C:\Users\dev\AppData\Local\nvim-data\plugged\telescope-fzf-native.nvim
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cmake --install build --prefix build
PS C:\Users\dev\AppData\Local\nvim-data\plugged\telescope-fzf-native.nvim> cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
-- Building for: Ninja
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/gnu/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (10.4s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/dev/AppData/Local/nvim-data/plugged/telescope-fzf-native.nvim/build
PS C:\Users\dev\AppData\Local\nvim-data\plugged\telescope-fzf-native.nvim> cmake --build build --config Release
[2/2] Linking C shared library libfzf.dll
PS C:\Users\dev\AppData\Local\nvim-data\plugged\telescope-fzf-native.nvim> cmake --install build --prefix build
-- Install configuration: "Release"

4.4 checkhealth

coc: health#coc#check
========================================================================
  - OK: nvim version satisfied
  - OK: Environment check passed
  - OK: Javascript bundle build/index.js found
  - OK: Service started

diffview: require("diffview.health").check()
========================================================================
## Checking plugin dependencies
  - OK: plenary installed.
  - OK: nvim-web-devicons installed.

## Checking VCS tools
  - INFO: The plugin requires at least one of the supported VCS tools to be valid.
  - OK: Git found.
  - OK: Git is up-to-date. (2.40.0.windows.1)
  - WARNING: Configured `hg_cmd` is not executable: 'hg'

man: require("man.health").check()
========================================================================
  - OK: plugin/man.vim not in $VIMRUNTIME
  - OK: autoload/man.vim not in $VIMRUNTIME

mason: require("mason.health").check()
========================================================================
## mason.nvim report
  - OK: neovim version >= 0.7.0
  - OK: **unzip**: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
  - OK: **Go**: `go version go1.20.2 windows/amd64`
  - WARNING: **cargo**: not available
  - WARNING: **luarocks**: not available
  - WARNING: **Ruby**: not available
  - WARNING: **RubyGem**: not available
  - WARNING: **Composer**: not available
  - WARNING: **PHP**: not available
  - OK: **npm**: `9.5.0`
  - OK: **node**: `v18.15.0
`
  - OK: **python3**: `Python 3.10.10
`
  - OK: **pip3**: `pip 23.0.1 from C:\gnu\msys64\mingw64\lib\python3.10\site-packages\pip (python 3.10)

`
  - OK: **javac**: `javac 20
`
  - OK: **java**: `openjdk version "20" 2023-03-21
`
  - WARNING: **julia**: not available
  - OK: **wget**: `GNU Wget 1.21.3 built on cygwin.`
  - OK: **curl**: `curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
`
  - OK: **gzip**: `gzip 1.12`
  - OK: **tar**: `bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp
`
  - OK: **pwsh**: `7.3.3 Microsoft Windows 10.0.19043 Win32NT
`
  - OK: **python**: `Python 3.10.10
`
  - OK: **pip**: `pip 23.0.1 from C:\gnu\msys64\mingw64\lib\python3.10\site-packages\pip (python 3.10)

`
  - WARNING: **7z**: not available
  - OK: GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: 2023/4/1 22:09:44.

noice: require("noice.health").check()
========================================================================
## noice.nvim
  - OK: **Neovim** >= 0.8.0
  - WARNING: **Neovim** 0.9.0 (nightly) is recommended, since it fixes some issues related to `vim.ui_attach`
  - OK: Not running inside **Neovide**
  - OK: You're not using a GUI
  - OK: **vim.go.lazyredraw** is not enabled
  - OK: **nvim-notify** is installed
  - OK: **TreeSitter vim** parser is installed
  - OK: **TreeSitter regex** parser is installed
  - OK: **TreeSitter lua** parser is installed
  - OK: **TreeSitter bash** parser is installed
  - WARNING: **TreeSitter markdown** parser is not installed. Highlighting of the cmdline for markdown might be broken
  - WARNING: **TreeSitter markdown_inline** parser is not installed. Highlighting of the cmdline for markdown_inline might be broken
  - OK: `vim.notify` is set to **Noice**
  - OK: `vim.lsp.handlers["textDocument/hover"]` is set to **Noice**
  - OK: `vim.lsp.handlers["textDocument/signatureHelp"]` is set to **Noice**
  - OK: `vim.lsp.handlers["window/showMessage"]` is set to **Noice**
  - OK: `vim.lsp.util.convert_input_to_markdown_lines` is set to **Noice**
  - OK: `vim.lsp.util.stylize_markdown` is set to **Noice**
  - OK: `cmp.entry.get_documentation` is set to **Noice**

nvim: health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: ? (not found)
  - INFO: key_dc (kdch1) terminfo entry: ? (not found)

nvim-treesitter: require("nvim-treesitter.health").check()
========================================================================
## Installation
  - OK: `tree-sitter` found 0.20.7 (b268e412ad4848380166af153300464e5a1cf83f) (parser generator, only needed for :TSInstallFromGrammar)
  - OK: `node` found v18.15.0 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
    Version: cc (Rev10, Built by MSYS2 project) 12.2.0
  - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

## OS Info:
{
  machine = "x86_64",
  release = "10.0.19043",
  sysname = "Windows_NT",
  version = "Windows 10 Pro"
}

## Parser/Features         H L F I J
  - bash                ✓ ✓ ✓ . ✓
  - c                   ✓ ✓ ✓ ✓ ✓
  - c_sharp             ✓ ✓ ✓ . ✓
  - cmake               ✓ . ✓ . .
  - cpp                 ✓ ✓ ✓ ✓ ✓
  - css                 ✓ . ✓ ✓ ✓
  - cuda                ✓ ✓ ✓ ✓ ✓
  - diff                ✓ . . . .
  - dockerfile          ✓ . . . ✓
  - dot                 ✓ . . . ✓
  - glsl                ✓ ✓ ✓ ✓ ✓
  - go                  ✓ ✓ ✓ ✓ ✓
  - html                ✓ ✓ ✓ ✓ ✓
  - java                ✓ ✓ . ✓ ✓
  - json                ✓ ✓ ✓ ✓ .
  - json5               ✓ . . . ✓
  - latex               ✓ . ✓ . ✓
  - llvm                ✓ . . . .
  - lua                 ✓ ✓ ✓ ✓ ✓
  - make                ✓ . ✓ . ✓
  - ninja               ✓ . ✓ ✓ .
  - python              ✓ ✓ ✓ ✓ ✓
  - query               ✓ ✓ ✓ ✓ ✓
  - regex               ✓ . . . .
  - rust                ✓ ✓ ✓ ✓ ✓
  - scss                ✓ . ✓ ✓ .
  - sql                 ✓ . . . ✓
  - tsx                 ✓ ✓ ✓ ✓ ✓
  - typescript          ✓ ✓ ✓ ✓ ✓
  - vim                 ✓ ✓ ✓ . ✓
  - vimdoc              ✓ . . . ✓
  - vue                 ✓ . ✓ ✓ ✓
  - yaml                ✓ ✓ ✓ ✓ ✓

  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: health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: win32yank

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Multiple python3 executables found.  Set `g:python3_host_prog` to avoid surprises.
  - INFO: Executable: C:\gnu\msys64\mingw64\bin\python3.EXE
  - INFO: Other python executable: C:/gnu/msys64/mingw64/bin/python3
  - INFO: Other python executable: C:/gnu/msys64/usr/bin/python3
  - INFO: Python version: 3.10.10
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - WARNING: `ruby` and `gem` must be in $PATH.
    - ADVICE:
      - Install Ruby and verify that `ruby` and `gem` commands work.

## Node.js provider (optional)
  - INFO: Node.js: v18.15.0
  - INFO: Nvim node.js host: C:\Users\dev\AppData\Roaming\npm\node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn/pnpm package is installed: 4.10.1

## 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

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - OK: nvim-treesitter installed.

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0 (rev af6b6c543b)
  - OK: fd: found fd 8.7.0

## ===== Installed extensions =====

## Telescope Extension: `fzf`
  - OK: lib working as expected
  - OK: file_sorter correctly configured
  - OK: generic_sorter correctly configured

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: C:\Users\dev\AppData\Local\nvim-data\lsp.log
  - INFO: Log size: 0 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 14
  - OK: Loaded parser for bash: ABI version 14
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for cmake: ABI version 14
  - OK: Loaded parser for cpp: ABI version 14
  - OK: Loaded parser for css: ABI version 13
  - OK: Loaded parser for cuda: ABI version 14
  - OK: Loaded parser for c_sharp: ABI version 14
  - OK: Loaded parser for diff: ABI version 14
  - OK: Loaded parser for dockerfile: ABI version 14
  - OK: Loaded parser for dot: ABI version 13
  - OK: Loaded parser for glsl: ABI version 14
  - OK: Loaded parser for go: ABI version 14
  - OK: Loaded parser for html: ABI version 13
  - OK: Loaded parser for java: ABI version 14
  - OK: Loaded parser for json: ABI version 13
  - OK: Loaded parser for json5: ABI version 13
  - OK: Loaded parser for latex: ABI version 14
  - OK: Loaded parser for llvm: ABI version 13
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for make: ABI version 13
  - OK: Loaded parser for ninja: ABI version 13
  - OK: Loaded parser for python: ABI version 14
  - OK: Loaded parser for query: ABI version 14
  - OK: Loaded parser for regex: ABI version 13
  - OK: Loaded parser for rust: ABI version 14
  - OK: Loaded parser for scss: ABI version 13
  - OK: Loaded parser for sql: ABI version 14
  - OK: Loaded parser for tsx: ABI version 14
  - OK: Loaded parser for typescript: ABI version 14
  - OK: Loaded parser for vim: ABI version 14
  - OK: Loaded parser for vimdoc: ABI version 14
  - OK: Loaded parser for vue: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for help: ABI version 14
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for vim: ABI version 14

which_key: health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **" k"**
  - INFO: rhs: `<Plug>BookmarkPrev`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **" j"**
  - INFO: rhs: `<Plug>BookmarkNext`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gb"**
  - INFO: rhs: `<Plug>(comment_toggle_blockwise)`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gc"**
  - INFO: rhs: `<Plug>(comment_toggle_linewise)`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"zf"**
  - INFO: rhs: `<Cmd>set operatorfunc=<SNR>59_ZfOperator<CR>g@`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"ys"**
  - INFO: rhs: `<Plug>Ysurround`
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"yS"**
  - INFO: rhs: `<Plug>YSurround`

4.5

网络问题 git proxy clean up

4.6

posted @ 2023-04-02 12:47  fndefbwefsowpvqfx  阅读(715)  评论(0编辑  收藏  举报