Skip to content

akccakcctw/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

136 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

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

Prerequisites

  • Git, if you want to keep syncing with new updates
  • chezmoi
  • Neovim, or Vim version 8.0+, with python supports
  • LazyVim: the plugin manager for Vim
  • delta: for Git diff
  • oh-my-zsh

Optional

  • ctags (for tags generation)

Usage

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

# update
chezmoi update

Features

Tmux

Use tpm to manage plugins:

WezTerm

Cross-platform config (dot_wezterm.lua) — a single file that auto-detects the OS via wezterm.target_triple. Atom One Dark theme with a Warp-like look, plus a status bar showing the current directory's Node version (resolved by mise).

Keybindings differ per platform on purpose. On macOS Cmd is free for the GUI app, but on Linux plain Ctrl is reserved by the shell (Ctrl+C, Ctrl+D, Ctrl+W, …), so a direct CmdCtrl swap would clobber core terminal keys. Linux therefore follows the Ctrl+Shift / Ctrl+Alt convention (and avoids Super, which desktop environments grab):

Action macOS Linux
Split left/right Cmd+D Ctrl+Shift+D
Split top/bottom Cmd+Shift+D Ctrl+Alt+D
Close pane Cmd+W Ctrl+Shift+W
Quick Select (copy URLs/paths/hashes) Cmd+Shift+U Ctrl+Alt+U (built-in Ctrl+Shift+Space also works)
Tab navigator / filter tabs Cmd+Shift+T Ctrl+Alt+T
Rename tab (empty input restores auto title) Cmd+Shift+E Ctrl+Shift+E
Move focus between panes Cmd+Alt+Arrow Ctrl+Alt+Arrow
Open link under cursor Cmd+Click Ctrl+Click

Other platform-specific bits handled in the same file: the mise binary path, macos_window_background_blur (macOS only), and font fallbacks (Nerd Font → DejaVu Sans Mono → monospace).

Requires a Nerd Font (e.g. Hack Nerd Font) for the Node icon in the status bar.

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

Syntax Highlighting
UI
Color Schemes
Snippets
Others

Language Servers

What is Language Server?

read linux/vimrc for more details.

nvim-treesitter

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

Releases

Packages

Used by

Contributors

Languages