- Configuration presentations
- A symbol outline in nested view
- A symbol outline in sorted view
- Autocomplete with the build-in omnifunc
- Folding according to after the pattern match
- Focus on the cur word after the pattern match
- A fuzzy file search without gitignore
- A fuzzy file word with gitignore
- A simple buffer switching that lists all buffers
- Keep netrw state
- LSP config
- Install
-
- Opened by
OpenSymbolOutlineNested
command. - When firstly opened, match the symbol under the cursor in the source file, with the symbol in symbol-outline if it could.
- When cursor in then symbol-outline win, press
r
to refresh the symbol-outline. - When cursor in then symbol-outline win, press
<CR>
to locate the symbol under the cursor in the source file.
- Opened by
-
- Opened by
OpenSymbolOutlineSorted
command - Others same as the symbol-outline sorted view.
- Opened by
-
- Use the
<TAB>
,<S-TAB>
or<UP>
and<DOWN>
to select a complementary item.
- Use the
-
- Toggled by
<SPACE>z
.
- Toggled by
-
- Opened by
Fs
command. - Or use
Fg
to search with gitignore. - Powered by ripgrep.
- Case insensitive search.
- When cursor in the file search result win, press
j
ork
to quickly preview the contents,<CR>
to jump to the file. <SPACE>q
to quit it anywhere.
- Opened by
-
- Opened by
Wg
command. - Or use
Ws
to search without gitignore. - Powered by ripgrep.
- Case insensitive search.
- When cursor in the file search result win, press
j
ork
to quickly preview the contents,<CR>
to jump to the file. <SPACE>q
to quit it anywhere.
- Opened by
-
- Opened by
<SPACE>l
. - When cursor in the file search result win, press
j
ork
to quickly preview the contents,<CR>
to jump to the file. <SPACE>q
to quit it anywhere.
- Opened by
-
- When quit the netrw and reopen it, its states will lose, so I wrote a script to keep its state, make it to hide on the right side instead of closing it, toggled by
<SPACE>e
- When quit the netrw and reopen it, its states will lose, so I wrote a script to keep its state, make it to hide on the right side instead of closing it, toggled by
-
- LSP config can be found at
/lua/lsp.lua
, see the nvim-lspconfig sever configuration codes for more languages sever that you need
- LSP config can be found at
To use neovim config with lsp, you can download files to your customized path or run the following one-line command:
curl -sL https://raw.githubusercontent.com/HCY-ASLEEP/NVIM-Config/main/nvim-config.sh | sh
To use neovim config without lsp but with self-contained auto completion of neovim, you can download files to your customized path or run the following one-line command:
curl -sL https://raw.githubusercontent.com/HCY-ASLEEP/NVIM-Config/main/nvim-config-without-lsp/nvim-config.sh | sh
To use vim config without lsp but with self-contained auto completion of vim, you can download files to your customized path or run the following one-line command:
curl -sL https://raw.githubusercontent.com/HCY-ASLEEP/NVIM-Config/main/vim-config-without-lsp.sh | sh
WARNING : Please carefully notice the content of vim-config-without-lsp.sh, this will damage the content of ~/.config/nvim/ !!!!!!
To install latest nodejs in China, you can run the following one-line command, but before running the command I strongly recommand switching to a non-root user firstly:
curl -sL https://raw.githubusercontent.com/HCY-ASLEEP/NVIM-Config/main/nodejs-installer.sh | bash
To quickly config your neovim develop environment in docker ubuntu, after enter the bash shell of docker ubuntu, you can try these commands:
apt update;\
apt upgrade -y;\
apt install neovim xz-utils curl sudo git apt-transport-https ca-certificates ripgrep -y;\
useradd -m devenv;\
usermod -s /bin/bash devenv;\
sudo sh -c 'echo "devenv ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers';\
sudo chown devenv /home/devenv/;\
sudo chgrp devenv /home/devenv/;\
su devenv
To edit nvim config easily, you can:
echo "alias iv = 'nvim ~/.config/nvim/init.vim'" >> ~/.bashrc
echo "alias v = 'nvim" >> ~/.bashrc
To install miniconda of docker ubuntu in China, you must 'su devenv' first!!! Then exec follows:
curl https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh -o ~/miniconda.sh;\
sh ~/miniconda.sh -b;\
rm ~/miniconda.sh;\
~/miniconda3/bin/conda init bash;\
sed -n '/# >>> conda initialize >>>/,/# <<< conda initialize <<</p' ~/.bashrc >> ~/.condainit;\
sed -i '/# >>> conda initialize >>>/,/# <<< conda initialize <<</d' ~/.bashrc;\
echo 'alias cab="source ~/.condainit"' >> ~/.bashrc;\
. ~/.bashrc
Then you can activate the conda env using 'cab' ( alias of 'conda activate base' )
To use fcitx input methed in GUI programes of the container, you can run commands below:
sudo sh -c 'echo "\nexport GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx\n" >> /etc/bash.bashrc';\
. /etc/bash.bashrc
However, fcitx may still not work in QT programes of the container. I had met this problem in xfce4 host environment, anyone has solutions can commit an issue, thanks.
Here are configs of my host .bashrc:
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
alias p='export ALL_PROXY=socks5://127.0.0.1:7890'
alias np='unset ALL_PROXY'
alias l='curl "http://172.30.255.42:801/eportal/portal/login?user_account=392432&user_password=12542614" ; echo'
alias v='nvim'
alias iv='nvim ~/.config/nvim/init.vim'
alias devenv='xhost + >> /dev/null;\
podman start devenv;\
podman exec -it \
-e XMODIFIERS=$XMODIFIERS \
-e QT_IM_MODULE=$QT_IM_MODULE \
-e GTK_IM_MODULE=$GTK_IM_MODULE \
-e DISPLAY=$DISPLAY \
devenv /bin/bash -c \
"cd /home/devenv/; su devenv;"'
alias u='sudo apt update; sudo apt upgrade -y;'