This repository was archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
3. QA
Jeffrey edited this page Oct 7, 2023
·
9 revisions
# ssh version
[23:30:46] ❯ ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
# Solution
## add the follwoing to /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa
## update ~/.ssh/config
Host xxxx
User guanzenghui
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa
## gen pub key
ssh-keygen -t rsasearch keyword speed in repo
-- lua/modules/editor/treesitter.lua
require("nvim-treesitter.install").command_extra_args = {
curl = { "--proxy", "http://127.0.0.1:7890" },
}
....
-- lua/modules/completion/lsp.lua
mason.setup({
max_concurrent_installers = 30,
-- speed
github = {
download_url_template = "https://ghproxy.com/https://github.com/%s/releases/download/%s/%s",
},
})
....
-- lua/modules/completion/lsp.lua
mason_lspconfig.setup({
-- speed
github = {
download_url_template = "https://ghproxy.com/https://github.com/%s/releases/download/%s/%s",
},
automatic_installation = true,
})
...# ERROR
Python 3 provider (optional)
Using: g:python3_host_prog = "/home/work/tools/anaconda/bin/python"
Executable: /home/work/tools/anaconda/bin/python
ERROR Command timed out: curl -sL 'https://pypi.python.org/pypi/pynvim/json'
Python version: 3.9.13
pynvim version: 0.4.3
WARNING Could not contact PyPI to get latest version.
ERROR HTTP request failed: error: curl error with https://pypi.python.org/pypi/pynvim/json: 143# fix:
pip3 uninstall neovim
pip3 uninstall pynvim
pip3 install pynvim
It would be good if the error messages mentioned https://github.com/neovim/neovim/wiki/Following-HEAD#20181118 though.# ERROR
dotfiles🔒 on main took 7s
❯ cpanm -n Neovim::Ext
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").# fix:
# Ubuntu
sudo apt-get install -y locales
sudo locale-gen en_US.UTF-8
export LANG=en_US.UTF-8https://github.com/loichyan/nerdfix
报错
src/scanner.c:446:5: error: ‘for’ loop initial declarations are only allowed in C99 mode解决
- 升级 gcc
- 以下任意配置(https://github.com/double12gzh/nvimdots/blob/main/lua/modules/configs/editor/treesitter.lua#L58)
require("nvim-treesitter.install").compilers = { "clang++" }
-- require("nvim-treesitter.install").compilers = { "/usr/bin/clang" }
-- require("nvim-treesitter.install").compilers = { "/usr/bin/c99" }
-- require("nvim-treesitter.install").compilers = { "gcc" }
- 参考
https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11?permalink_comment_id=3805292#gistcomment-3805292
https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11