DEV Community

Kamolsit Mongkolsrisawat
Kamolsit Mongkolsrisawat

Posted on • Updated on

Config Nvim on ubuntu 22.0

  • get lua config file
https://gist.githubusercontent.com/socool/44f99e2798440fc6ac8d93ced7930005/raw/ed15025a95243dd3ad8718887506ae8d5434ca51/init.lua
Enter fullscreen mode Exit fullscreen mode
  • move config to config path
mkdir -p ~/.config/nvim
cd ~/.config/nvim
curl https://gist.githubusercontent.com/socool/44f99e2798440fc6ac8d93ced7930005/raw/ed15025a95243dd3ad8718887506ae8d5434ca51/init.lua -o init.lua
Enter fullscreen mode Exit fullscreen mode
  • install nvim from source
  • Install build prerequisites on your system
sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl doxygen
Enter fullscreen mode Exit fullscreen mode

and pip

sudo apt install python3-pip
Enter fullscreen mode Exit fullscreen mode
  • Clone project
git clone https://github.com/neovim/neovim
Enter fullscreen mode Exit fullscreen mode
  • Switch to stable version
git checkout stable
Enter fullscreen mode Exit fullscreen mode
  • Install
rm -r build/  # clear the CMake cache
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/neovim"
make install
export PATH="$HOME/neovim/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

[https://github.com/neovim/neovim/wiki/Building-Neovim]

  • if found error
Ign:5 https://pkg.jenkins.io/debian-stable binary/ InRelease                                                           Err:6 https://pkg.jenkins.io/debian-stable binary/ Release                                                          Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 199.232.66.133 443] Hit:7 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease         Reading package lists... Done E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. 
Enter fullscreen mode Exit fullscreen mode

Fixing this issue you need to install/update ca-certificates

sudo apt install ca-certificates
Enter fullscreen mode Exit fullscreen mode

Top comments (0)