Javi

Astronvim: installation

Jun 2nd, 2026 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
  2. sudo rm -rf /opt/nvim-linux-x86_64
  3. sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
  4.  
  5.  
  6. wget https://github.com/tree-sitter/tree-sitter/releases/download/v0.26.9/tree-sitter-cli-linux-x64.zip
  7. unzip tree-sitter-cli-linux-x64.zip
  8. chmod +x tree-sitter
  9. sudo mv tree-sitter /usr/local/bin/
  10. tree-sitter --version
  11.  
  12. sudo apt update
  13. sudo apt-get install ripgrep -y
  14. sudo apt install lazygit -y
  15.  
  16. curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom_0.12.3-1_amd64.deb
  17. sudo dpkg -i bottom_0.12.3-1_amd64.deb
  18.  
  19.  
  20.  
  21. mv ~/.config/nvim ~/.config/nvim.bak
  22. mv ~/.local/share/nvim ~/.local/share/nvim.bak
  23. mv ~/.local/state/nvim ~/.local/state/nvim.bak
  24. mv ~/.cache/nvim ~/.cache/nvim.bak
  25.  
  26.  
  27. git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
  28. rm -rf ~/.config/nvim/.git
  29.  
  30. cat << 'EOF' >> ~/.config/nvim/init.lua
  31. vim.keymap.set("n", "<up>", "gk", { desc = "Move cursor up one visual line" })
  32. vim.keymap.set("n", "<down>", "gj", { desc = "Move cursor down one visual line" })
  33. vim.keymap.set("i", "<up>", "<C-o>gk", { desc = "Move cursor up one visual line (insert)" })
  34. vim.keymap.set("i", "<down>", "<C-o>gj", { desc = "Move cursor down one visual line (insert)" })
  35. vim.keymap.set("v", "<up>", "gk", { desc = "Move cursor up one visual line (visual)" })
  36. vim.keymap.set("v", "<down>", "gj", { desc = "Move cursor down one visual line (visual)" })
  37.  
  38. vim.opt.wrap = true -- Enable line wrapping
  39. vim.opt.linebreak = true -- Wrap at word boundaries (not mid-word)
  40. vim.opt.breakindent = true -- Indent wrapped lines nicely
  41. EOF
  42.  
  43. cat << 'EOF' >> ~/.bashrc
  44. export PATH=$PATH:/opt/nvim-linux-x86_64/bin/
  45. EOF
  46.  
  47. cat << 'EOF' > ~/.config/nvim/lua/plugins/render-markdown.lua
  48.  
  49. return {
  50. "MeanderingProgrammer/render-markdown.nvim",
  51. dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
  52. ft = { "markdown" },
  53. opts = {},
  54. }
  55.  
  56. EOF
Advertisement
Add Comment
Please, Sign In to add comment