Neovim: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<source lang="bash">
<syntaxhighlight lang="bash">
npm install tree-sitter-cli
npm install tree-sitter-cli
sudo snap install nvim --classic
sudo snap install nvim --classic


# astro nvim configuration and theming
# astro nvim configuration and theming
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
rm -rf ~/.config/nvim/.git
sudo apt install ripgrep
sudo apt install ripgrep
</syntaxhighlight>
----
<syntaxhighlight lang="bash">
git clone --depth 1 https://github.com/ryanoasis/nerd-fonts/ ~/nerd-fonts
~/nerd-fonts/install.sh
du -sh ~/nerd-fonts/


du -sh ~/.local/share/fonts/NerdFonts
rm -rf ~/nerd-fonts/
</syntaxhighlight>
----
<syntaxhighlight lang="bash">
# lazygit installation from github releases
# lazygit installation from github releases
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
LAZYGIT_VERSION=$(curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
curl -Lo lazygit.tar.gz   https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz
tar xf lazygit.tar.gz lazygit && sudo install lazygit /usr/local/bin
curl -Lo lazygit.tar.gz  https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_arm64.tar.gz
rm -rf lazygit lazygit.tar.gz
tar   xf lazygit.tar.gz   lazygit && sudo install lazygit /usr/local/bin
rm   -rf lazygit.tar.gz  lazygit
</syntaxhighlight>
----
<syntaxhighlight lang="bash">
cat <<-'EXE'|sudo bash
mkdir -p /opt/ide
NEOVIM_VERSION=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -fsSLo nvim.tar.gz  https://github.com/neovim/neovim/releases/download/v${NEOVIM_VERSION}/nvim-linux-x86_64.tar.gz
tar  -xzf  nvim.tar.gz  -C /opt/ide/
rm  -rf    nvim.tar.gz


# graphical disk usage
update-alternatives --install /usr/local/bin/nvim nvim /opt/ide/nvim-linux-x86_64/bin/nvim 1983
update-alternatives --query  nvim
EXE
</syntaxhighlight>
----
<syntaxhighlight lang="bash">
# g disk usages
apt install gdu
apt install gdu


Line 22: Line 50:
sudo snap connect bottom:system-observe
sudo snap connect bottom:system-observe
sudo snap connect bottom:process-control
sudo snap connect bottom:process-control
 
</syntaxhighlight>
</source>


==References==
==References==
Line 30: Line 57:
* [https://github.com/AstroNvim/AstroNvim Neovim » AstroNvim » GitHub]
* [https://github.com/AstroNvim/AstroNvim Neovim » AstroNvim » GitHub]
* [https://astronvim.com/ Neovim » AstroNvim » Install]
* [https://astronvim.com/ Neovim » AstroNvim » Install]
* [https://www.nerdfonts.com/font-downloads Neovim » Nerd Fonts]
* [http://neovim.io/doc/user/quickref.html Neovim » Quick References]
* [https://www.shortcutfoo.com/app/dojos/neovim/cheatsheet Neovim » Cheatsheet]
* [https://alpha2phi.medium.com/neovim-for-beginners-cheatsheet-and-coding-assistant-137d5a15c934 Neovim » Beginners]
* [https://github.com/neovim/neovim/wiki/Installing-Neovim Neovim » Install]
* [https://github.com/neovim/neovim/wiki/Installing-Neovim Neovim » Install]
* [https://snapcraft.io/nvim Neovim » Snap]
* [https://snapcraft.io/nvim Neovim » Snap]
Line 36: Line 65:


| valign="top" |
| valign="top" |
* [https://github.com/ryanoasis/nerd-fonts/releases/ Neovim » Nerd Fonts » GitHub » Releases]
* [https://github.com/ryanoasis/nerd-fonts/wiki Neovim » Nerd Fonts » GitHub » Wiki]
* [https://github.com/ryanoasis/nerd-fonts/ Neovim » Nerd Fonts » GitHub]
* [https://www.nerdfonts.com/font-downloads Neovim » Nerd Fonts]
* [[Lazy Docker]]
* [[K9s]]


| valign="top" |
| valign="top" |

Latest revision as of 15:17, 2 October 2025

npm install tree-sitter-cli
sudo snap install nvim --classic

# astro nvim configuration and theming
git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
rm -rf ~/.config/nvim/.git
sudo apt install ripgrep

git clone --depth 1 https://github.com/ryanoasis/nerd-fonts/ ~/nerd-fonts
~/nerd-fonts/install.sh
du -sh ~/nerd-fonts/

du -sh ~/.local/share/fonts/NerdFonts
rm -rf ~/nerd-fonts/

# lazygit installation from github releases
LAZYGIT_VERSION=$(curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz   https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz
curl -Lo lazygit.tar.gz   https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_arm64.tar.gz
tar   xf lazygit.tar.gz   lazygit && sudo install lazygit /usr/local/bin
rm   -rf lazygit.tar.gz   lazygit

cat <<-'EXE'|sudo bash
mkdir -p /opt/ide
NEOVIM_VERSION=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -fsSLo nvim.tar.gz  https://github.com/neovim/neovim/releases/download/v${NEOVIM_VERSION}/nvim-linux-x86_64.tar.gz
tar  -xzf   nvim.tar.gz  -C /opt/ide/
rm   -rf    nvim.tar.gz

update-alternatives --install /usr/local/bin/nvim nvim /opt/ide/nvim-linux-x86_64/bin/nvim 1983
update-alternatives --query   nvim
EXE

# g disk usages
apt install gdu

# bottom like htop
sudo snap install bottom
sudo snap connect bottom:mount-observe
sudo snap connect bottom:hardware-observe
sudo snap connect bottom:system-observe
sudo snap connect bottom:process-control

References