Advertisement
metalx1000

NEOVIM settup

Feb 15th, 2023 (edited)
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. sudo apt install neovim
  2. #or nestest stable
  3. deb="https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb"
  4. wget "$deb" -O /tmp/nvim-linux64.deb && sudo dpkg -i /tmp/nvim-linux64.deb
  5.  
  6. mkdir -p ~/.config/nvim
  7. cd ~/.config/nvim
  8. wget "https://raw.githubusercontent.com/nvim-lua/kickstart.nvim/master/init.lua"
  9.  
  10. sudo update-alternatives --config editor
  11.  
  12. cat << EOF
  13. export EDITOR="nvim"
  14. export editor="$EDITOR"
  15. alias vim="$EDITOR"
  16. EOF
  17.  
  18. echo 'require("fbk")' >> ~/.config/nvim/init.lua
  19. sudo ln -s /usr/bin/nvim /usr/local/bin/vim
  20.  
  21. nvim
  22.  
  23. #setup languages
  24. :Mason
  25.  
  26. #purge nvim settings
  27. rm ~/.cache/nvim -fr
  28. rm ~/.config/nvim -fr
  29. rm ~/.local/share/nvim -fr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement