IceNvim is a beautiful, powerful and customizable neovim config. Powerful, yet blazing fast.
For a detailed introduction on the various features of and on how to use IceNvim, refer to the wiki.
hop.nvim
, undotree
and vim-surround
Lazy
and Mason
Note that some of the packages might have different names with different package managers!
Installing dependencies on Arch:
sudo pacman -S --needed curl gzip wget fd ripgrep gcc nodejs npm python python-pip unzip zip xclip python-virtualenv
Installing dependencies on Windows (via scoop):
scoop install curl gzip wget fd ripgrep mingw nodejs-lts python
On Windows:
git clone https://github.com/Shaobin-Jiang/IceNvim "$env:LOCALAPPDATA\nvim"
On Linux:
git clone https://github.com/Shaobin-Jiang/IceNvim ~/.config/nvim
im-select.exe
(recommended for windows / wsl users)For automatic IME switching when inputing Chinese, im-select.exe is needed.
Download it from https://github.com/daipeihust/im-select/raw/master/win/out/x86/im-select.exe and place to the bin
directory in the configuration directory.
Additionally, if you are using wsl, you might have to do this:
chmod +x ~/.config/nvim/bin/im-select.exe
uclip.exe
(recommended for windows / wsl users)Although text yanked from within IceNvim is already available from outside, one might find that unicode characters are not copied properly on Windows and WSL. This is because the functionality is dealt with by Windows' CLIP
command which does a poor job when used with utf-8 characters.
To solve this, one might need to download uclip.exe and place it in the bin
directory in the configuration directory.
Additionally, if you are using wsl, you might have to do this:
chmod +x ~/.config/nvim/bin/uclip.exe
This neovim configuration allows users to override the default configuration by creating a custom
dir under lua/
.
IceNvim will try to detect and load custom/init.lua
. Since custom/
is git-ignored, it will be easy for you to make your own configurations without messing up the original git repo and missing follow-up updates.
Most IceNvim config options can be found under a global variable Ice
. The entire setup follows this routine:
Ice
custom/init.lua
Ice
to set up plugins and create keymapsTherefore, almost everything IceNvim defines can be re-configured by you.
An example custom/init.lua
:
Ice.plugins["nvim-transparent"].enabled = false
Ice.keymap.general.open_terminal = { "n", "<leader>terminal", ":split term://bash<CR>" }
local autogroup = vim.api.nvim_create_augroup("OverrideFtplugin", { clear = true })
vim.api.nvim_create_autocmd("BufEnter", {
group = autogroup,
callback = function()
if vim.bo.filetype == "lua" then
vim.cmd "setlocal colorcolumn=120"
end
end,
})
When installing omnisharp, make sure that dotnet sdk is installed.
When receiving nuget-related errors when installing csharpier, you might have to configure nuget source (see https://learn.microsoft.com/zh-cn/nuget/reference/errors-and-warnings/nu1100#solution-2):
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
You need to check how you installed rust. I have not been able to set up rust-analyzer when installing rust only (e.g., via scoop install rust
or sudo zypper in rust
) either, but with the officially recommended way, i.e., by installing rustup, everything works properly.
Also, you might find that completion does not work when first opening a rust project. That is because some time needs to be taken to index the code, and completion would only work after indexing is done.
When installing typst-preview.nvim, you might have this error: Downloading typst-preview binary failed, exit code: 35
. This might be due to the use of proxies. Shut down softwares of such kind and run this command again:
lua require("typst-preview").update()