Last active
August 17, 2024 02:09
-
-
Save t1m0t/67485b8ae50f5a8dea972be435f65469 to your computer and use it in GitHub Desktop.
install nvchad in wsl for ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to read the docs here https://nvchad.com/docs/quickstart/install | |
# two ways to install neovim, like this | |
sudo add-apt-repository ppa:neovim-ppa/stable -y | |
sudo add-apt-repository ppa:neovim-ppa/unstable -y | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install neovim -y | |
# or like this | |
sudo snap install node nvim --classic | |
# then | |
sudo apt install ripgrep mingw-w64 build-essential -y | |
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim | |
# Donwload a Nerd Font https://www.nerdfonts.com/ and install the fonts in Windows | |
# Configure powershell for example to use one of the installed Nerd Font | |
# copy/paste in .config/nvim/init.lua | |
vim.g.clipboard = { | |
name = 'WslClipboard', | |
copy = { | |
['+'] = 'clip.exe', | |
['*'] = 'clip.exe', | |
}, | |
paste = { | |
['+'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))', | |
['*'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))', | |
}, | |
cache_enabled = false, | |
} |
En faisant :checkhealth
, ça m'indiquait que tree-sitter n'était pas présent. Pour y remédier : sudo npm install -g tree-sitter
Pour afficher les fichiers .env dans ~.config/nvim/lua/plugins/configs/nvimtree.lua
:
--- a/lua/plugins/configs/nvimtree.lua
+++ b/lua/plugins/configs/nvimtree.lua
@@ -20,7 +20,7 @@ local options = {
},
git = {
enable = false,
- ignore = true,
+ ignore = false,
},
filesystem_watchers = {
enable = true,
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
J'ai ajouté l'install de
build-essential
car make est nécessaire pour compilerfzf
qui nécessaire pourtelescope
.Ensuite, aller dans
~/.local/share/nvim/lazy/telescope-fzf-native.nvim
puis entrermake