I highly recommend that if you're using Windows then install WSL.
DON'T use this Neovim config if you don't have Linux !!
If you still want to use Neovim on PowerShell then use LunarVim instead !
Make sure to remove or move your current nvim
directory
IMPORTANT Requires Neovim v0.8 or above
git clone https://github.com/voanhhieu10250/neovim-configuration.git ~/.config/nvim
Run nvim
and wait for the plugins to be installed
NOTE (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)
Open nvim
and enter the following:
:checkhealth
You'll probably notice you don't have support for copy/paste also that python and node haven't been setup
So let's fix that
First we'll fix copy/paste
-
On mac
pbcopy
should be builtin -
On Ubuntu
sudo apt install xsel
-
On Arch Linux
sudo pacman -S xsel
-
On WSL install win32yank.exe in order for neovim to work with system clipboard.
curl -sLo/tmp/win32yank.zip https://github.com/equalsraf/win32yank/releases/download/v0.0.4/win32yank-x64.zip unzip -p /tmp/win32yank.zip win32yank.exe > /tmp/win32yank.exe chmod +x /tmp/win32yank.exe sudo mv /tmp/win32yank.exe /usr/local/bin/
Next we need to install python support (node is optional)
-
Neovim python support
pip install pynvim
-
Neovim node support
npm i -g neovim
NOTE make sure you have node installed, I recommend a node manager like fnm.
After moving fonts to ~/.local/share/fonts/
Run: $ fc-cache -f -v
NOTE: (If you are seeing boxes without icons, try changing this line from false
to true
: link)
git clone [email protected]:microsoft/java-debug.git
cd java-debug/
./mvnw clean install
git clone [email protected]:microsoft/vscode-java-test.git
cd vscode-java-test
npm install
npm run build-plugin
NOTE:
-
You should use Sdkman to manage java versions. And make sure that your java version is at least version 17 or above in order for jdtls to works.
-
After installed all the needed packet above, go to Neovim and install LSP jdtls using mason.
The computing scientist's main challenge is not to get confused by the complexities of his own making.
- Edsger W. Dijkstra