Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
Jeffrey edited this page May 9, 2023 · 9 revisions

1. no matching host key type found. Their offer: ssh-rsa

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

2. Mason or treesitter is slow

search 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,
})
...

3. pynvim timeout

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

4. LANG warning

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

5. Nerd Font icons 检查

https://github.com/loichyan/nerdfix

Clone this wiki locally