Skip to content

kleninmaxim/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

A few words

This repository was borrowed and modified from Jess Archer. Here is a link to the original repository.

I am grateful to Jess Archer for teaching the neovim editor in a course on Laracasts

About

Dotfiles is a custom editor on neovim for php and js built on plugins and ready-made tools for programming and application development.

The main purpose of the editor is to provide convenience and increase the speed of development.

This editor is based on neovim, a clone of the vim text editor.

You can install it and change all settings as you wish. This repository offers basic development functionality.

Requirements

Before you start to install editor, you need install next dependencies.

  1. Install Oh My Zsh
    1. Install zsh-syntax-highlighting
      git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
    2. Install zsh-autosuggestions
      git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
  2. Install Neovim
  3. Install Kitty
  4. Install Tmux
  5. Install fnm
  6. Install unzip. Example for ubuntu: sudo apt install unzip
  7. Install fzf
  8. Install gpg
  9. Install JetbrainsMonno Nerd Font Mono for kitty

Installation

Very important!!!

Installing the editor will overwrite the configuration files (listed below). Don't forget to backup these files if their customization is important to you!

List of files that will be overwritten:

  1. ~/.zshrc
  2. ~/.vim
  3. ~/.vimrc
  4. ~/.config/nvim
  5. ~/.config/kitty
  6. ~/.tmux.conf
  7. ~/.gitconfig
  8. ~/.gitignore_global
  9. ~/.config/phpactor

Installation steps:

  1. Clone repository
  2. Run script ./install
  3. Create file .gitconfig_local: vim ~/.gitconfig_local and add:
    [user]
        name = "your-github-username"
        email = your-email@example.com
        signingkey = your-value-generated-in-next-step #get value in next step
    
  4. Generating a new GPG key and adding a GPG key to your GitHub account
  5. Open neovim: nvim
  6. Run command: :Lazy install
  7. Run command for treesitter: :TSUpdate all

Usage

Zsh

In zsh/zshrc file you can find aliases to use short commands

Kitty

In the kitty app, there are only settings on theme and appearance. Detailed settings in the kitty folder. You can change the settings to your values

Tmux

List of commands:

  • cntr + space + c - open new windows
  • cntr + space + 0 - switch to zero window
  • cntr + space + p - switch to previous window
  • cntr + space + n - switch to next window
  • cntr + space + % - split window
  • cntr + space + : - open tmux command
  • cntr + space + s - open a list of sessions
  • cntr + space + d - detach session (quit from tmux)
  • cntr + space + x - close the split window | delete window
  • cntr + d - delete window
  • cntr + space + F - find project in computer
  • cntr + space + D - open ~/Projects/Settings/dotfiles folder (you can change that folder in tmux/tmux.conf file)

Vim

If I only need to change one file, whether it is a customization or a text document, I prefer to use vim for such a simple purpose. So for this editor, I use the minimal configuration in the vim folder.

Vim Cheat Sheet

Nvim