/dotfiles

.files

Primary LanguageLua

dotfiles

My personal .files with chezmoi, tested and works well on macOS (MacBook Pro) and ArchLinux (Intel NUC 8i7HVK)

Prerequisites

  • chezmoi
  • Neovim, or Vim version 8.0+, with python supports
  • vim-plug, the plugin manager for Vim
    • follow official README here
  • Git, if you want to keep syncing with new updates
  • oh-my-zsh

Optional

  • ctags (for tags generation)

Usage

# init
chezmoi init https://github.com/akccakcctw/dotfiles.git

# update
chezmoi update

Features

Tmux

Tmux Plugins

Vim

mapping leader key to ,.

  • tabs
    • open a new tab: <C-n>
    • switch to next tab: <Leader>n
  • split window
    • split horizontal: <C-\>
    • split window navigations: <C-Left>, <C-Down>, <C-Up>, <C-Right>
    • switch between vertical/horizontal split: <Leader>E, <Leader>I
  • no highlight search result: <Leader>/
  • toggle wrap: <F2>
  • increase/decrease number under the cursour: +, -
  • move text line up/down: <C-j>, <C-k>
  • avoid the escape key: jj
  • save a file as root: <Leader>WW
  • strip trailing whitespace: <Leader>ss
  • edit .vimrc: <leader>ee

Vim Plugins

Coc Extensions

Wiki: Using coc extensions

Language Servers

What is Language Server?

read linux/vimrc for more details.

nvim-treesitter

https://github.com/nvim-treesitter/nvim-treesitter