Open miriam-z opened 3 years ago
can you succeed to create the workflow ? I want to talk about you about that....
git clone https://github.com/craftzdog/dotfiles-public.git
If you only want the NeoVim config, then copy the nvim
directory to your .config
mkdir ~/.config/nvim
cp -r dotfiles-public/.config/nvim/ ~/.config/nvim/
packer.nvim is the plugin manager being used here. So, you will need to install that first.
Unix, Linux Installation
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
If you use Arch Linux, there is also an AUR package.
Windows Powershell Installation
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
Once the plugin manager is installed, you can proceed to install all the plugins.
Open the plugins.lua
file:
nvim ~/.config/nvim/lua/craftzdog/plugins.lua
Switch to COMMAND
mode and type the following command
:PackerInstall
The above command will install your plugins.
Use the following command to display a list of languages you could install.
:TSInstallInfo
Install the required language parsers:
:TSInstall <language_to_install>
I hope this answers your question.
@ksaswin I'd also recommend to take a look at dotbot to automate setup, here is my dotfiles based on the craftzdog dotfiles for nvim
and dotbot
. So, in my case I have automated setup for nvim, aliases, functions, zsh, htop, etc.
@ksaswin I am not able to use command :PackerInstall. It says, "PackerInstall is not an editor command". Using Windows Powershell, and also had installed packer.nvim and neovim.
@Sachinanand99 Are all the config files in the right place?
Would you be able to share the results of the tree
command from the C:\Users\user_name\AppData\Local\nvim
and the C:\Users\user_name\AppData\Local\nvim-data
directories?
@ksaswin
Looks like the config files aren't at the right location.
After cloning the repo, move everything within dotfiles-public\.config\nvim\
to C:\Users\user_name\AppData\Local\nvim\
.
Then open the plugins file nvim C:\Users\user_name\AppData\Local\nvim\lua\craftzdog\plugins.lua
and try installing the plugins.
In the workflow I provided, the commands were actually for Linux/Mac users! Probably that's what caused the confusion😅
so for windows
Windows ~/AppData/Local/nvim/init.vim (or init.lua)
@ksaswin When I try to install the plugins, I get an error "error is not an editor command :PackerInstall", could you help me please, I really want this configuration
Hi @roda404,
I noticed that he has migrated to LazyVim as his base configuration. I would suggest looking into the documentations for info regarding the same :)
From the docs:
It is recommended to run :LazyHealth after installation. This will load all plugins and check if everything is working correctly.
nvim but I dont see anything other than the default nvim screen?
MacOSX Big Sur setup