Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
- sudo rm -rf /opt/nvim-linux-x86_64
- sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
- wget https://github.com/tree-sitter/tree-sitter/releases/download/v0.26.9/tree-sitter-cli-linux-x64.zip
- unzip tree-sitter-cli-linux-x64.zip
- chmod +x tree-sitter
- sudo mv tree-sitter /usr/local/bin/
- tree-sitter --version
- sudo apt update
- sudo apt-get install ripgrep -y
- sudo apt install lazygit -y
- curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom_0.12.3-1_amd64.deb
- sudo dpkg -i bottom_0.12.3-1_amd64.deb
- mv ~/.config/nvim ~/.config/nvim.bak
- mv ~/.local/share/nvim ~/.local/share/nvim.bak
- mv ~/.local/state/nvim ~/.local/state/nvim.bak
- mv ~/.cache/nvim ~/.cache/nvim.bak
- git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
- rm -rf ~/.config/nvim/.git
- cat << 'EOF' >> ~/.config/nvim/init.lua
- vim.keymap.set("n", "<up>", "gk", { desc = "Move cursor up one visual line" })
- vim.keymap.set("n", "<down>", "gj", { desc = "Move cursor down one visual line" })
- vim.keymap.set("i", "<up>", "<C-o>gk", { desc = "Move cursor up one visual line (insert)" })
- vim.keymap.set("i", "<down>", "<C-o>gj", { desc = "Move cursor down one visual line (insert)" })
- vim.keymap.set("v", "<up>", "gk", { desc = "Move cursor up one visual line (visual)" })
- vim.keymap.set("v", "<down>", "gj", { desc = "Move cursor down one visual line (visual)" })
- vim.opt.wrap = true -- Enable line wrapping
- vim.opt.linebreak = true -- Wrap at word boundaries (not mid-word)
- vim.opt.breakindent = true -- Indent wrapped lines nicely
- EOF
- cat << 'EOF' >> ~/.bashrc
- export PATH=$PATH:/opt/nvim-linux-x86_64/bin/
- EOF
- cat << 'EOF' > ~/.config/nvim/lua/plugins/render-markdown.lua
- return {
- "MeanderingProgrammer/render-markdown.nvim",
- dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
- ft = { "markdown" },
- opts = {},
- }
- EOF
Advertisement
Add Comment
Please, Sign In to add comment