My_workflow

My personal workflow with Nvim + Tmux

Experience is everything!
These settings can make you focus on your workflow and improve coding efficiency.

You can also find this page in my blog.
My work flow

iTerm2 + Oh My Zsh

It is a pretty nice combination to make your terminal so much better!

Requirement

HOMEBREW

First of all, you need homebrew to manage your packages on mac.

1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then add homebrew to your system path:

1
2
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/[username]/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Packages

1
brew install --cask iterm2
1
brew install git
1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

You can find your favourite theme in the official document.
My “PowerLevel10K“ theme look like this:
Oh my zsh

Neovim

Requirement

Packages

You also need to install iTerm2, Neovim, Ripgrep and Node with homebrew.

1
brew install --cask iTerm2
1
brew install neovim
1
brew install ripgrep

XCode Command Line Tools

1
xcode-select --install

Actions

Create a directory named “nvim”:

1
mkdir ~/.config/nvim

And then just clone my respository.
The folder structure looks like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.
├── init.lua
├── lua
│   └── your_username
│   ├── core
│   │   ├── colorscheme.lua
│   │   ├── keymaps.lua
│   │   └── options.lua
│   ├── plugins
│   │   ├── autopair.lua
│   │   ├── comment.lua
│   │   ├── gitsigns.lua
│   │   ├── lsp
│   │   │   ├── lspconfig.lua
│   │   │   ├── lspsaga.lua
│   │   │   ├── mason.lua
│   │   │   └── null-la.lua
│   │   ├── lualine.lua
│   │   ├── nvim-cmp.lua
│   │   ├── nvim-tree.lua
│   │   ├── telescope.lua
│   │   └── treesitter.lua
│   └── plugins-setup.lua
└── plugin
└── packer_compiled.lua

It will be look like this:
Neovim

Tmux

Requirement

Please ensure you have installed tmux first.

1
brew install tmux

Actions

You just need create a “.tmux.conf” file in your home directory.

1
nvim ~/.tmux.conf

And then copy my config into your “.tmux.conf” file.
It will be look like this:
Tmux

Congratulations!

Reference: @josean @bryant


My_workflow
http://xxblog.net/Linux/My-workflow/
Author
XX
Posted on
July 6, 2024
Updated on
July 7, 2024
Licensed under