craftzdog / dotfiles-public

My personal dotfiles
6.4k stars 1.16k forks source link

[Question] How to launch after cloning this project? #8

Open miriam-z opened 3 years ago

miriam-z commented 3 years ago

nvim but I dont see anything other than the default nvim screen?

MacOSX Big Sur setup

sukai-cheng commented 3 years ago

can you succeed to create the workflow ? I want to talk about you about that....

ksaswin commented 2 years ago

Brief work flow to set up NeoVim

Clone the repo

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/

Plugin manager installation

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.

Plugins installation

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.

Tree sitter

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.

fisenkodv commented 2 years ago

@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.

Sachinanand99 commented 1 year ago

@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.

ksaswin commented 1 year ago

@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?

Sachinanand99 commented 1 year ago

@ksaswin

Screenshot 2022-12-02 144428

ksaswin commented 1 year ago

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😅

shubham8550 commented 1 year ago

so for windows

Windows         ~/AppData/Local/nvim/init.vim   (or init.lua)
roda404 commented 2 months ago

@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 Captura desde 2024-08-17 18-04-45

ksaswin commented 2 months ago

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.