diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-11-10 12:37:00 -0800 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-11-10 12:37:00 -0800 |
commit | 7589a1607cdd3495f56452adc1bf797e1ed13018 (patch) | |
tree | 2b2a73e7fc87ead3731d32db2d9ee53fa186cda4 | |
download | dotfiles-7589a1607cdd3495f56452adc1bf797e1ed13018.tar dotfiles-7589a1607cdd3495f56452adc1bf797e1ed13018.tar.gz dotfiles-7589a1607cdd3495f56452adc1bf797e1ed13018.tar.bz2 dotfiles-7589a1607cdd3495f56452adc1bf797e1ed13018.zip |
Fist Commit
-rw-r--r-- | README.md | 47 | ||||
-rw-r--r-- | fish/.config/fish/functions/fish_prompt.fish | 18 | ||||
-rw-r--r-- | nvim/.config/nvim/.gitignore | 1 | ||||
-rw-r--r-- | nvim/.config/nvim/init.vim | 36 | ||||
-rw-r--r-- | nvim/.stow-local-ignore | 1 | ||||
-rw-r--r-- | rime/.config/ibus/rime/default.custom.yaml | 13 | ||||
-rw-r--r-- | rime/.config/ibus/rime/jyutping.custom.yaml | 8 | ||||
-rw-r--r-- | rime/.config/ibus/rime/luna_pinyin_simp.custom.yaml | 8 | ||||
-rw-r--r-- | rime/.stow-local-ignore | 1 |
9 files changed, 133 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..62943bb --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# Dotfiles + +**Personal** dotfiles. + +## My Environment + +* ~~IDE~~: Tmux + NeoVim +* Terminal: fish +* Editor: NeoVim +* OS: Arch Linux +* IDE: Android Studio and / or IntelliJ Idea +* Desktop: KDE +* Input: iBus + Rime (Chinese, Luna Pinyin Simp + Jyutping) + +## Setup + +1. Clone the repo to your `$HOME` + +```shell +$> cd ~ +$> git clone https://github.com/Trumeet/Dotfiles.git +$> cd Dotfiles +``` + +2. Install + +Boooooom. The magic happens. + +```shell +$> stow fish +$> stow nvim +# You will see an error after executing this. Just ignore it and restart NeoVim. +$> nvim -c "PlugInstall" +$> stow rime +``` + +3. Enjoy + +Wait... you are **NOT** supposed to enjoy it because they are my **PERSONAL** configurations, which are **NOT** supposed to fit in your environment and habit. + +# Acknowledgements + +Other users' dotfile repos, StackOverflow, Google, GitHub, etc. + +# License + +GPL v2 diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..7176392 --- /dev/null +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,18 @@ +function fish_prompt --description 'Write out the prompt' + set -l color_cwd + set -l suffix + switch "$USER" + case root toor + if set -q fish_color_cwd_root + set color_cwd $fish_color_cwd_root + else + set color_cwd $fish_color_cwd + end + set suffix '#' + case '*' + set color_cwd $fish_color_cwd + set suffix '>' + end + + echo -n -s (set_color $color_cwd) (prompt_pwd) (set_color normal) "$suffix " +end diff --git a/nvim/.config/nvim/.gitignore b/nvim/.config/nvim/.gitignore new file mode 100644 index 0000000..060f79b --- /dev/null +++ b/nvim/.config/nvim/.gitignore @@ -0,0 +1 @@ +plugged/ diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim new file mode 100644 index 0000000..5cd4d99 --- /dev/null +++ b/nvim/.config/nvim/init.vim @@ -0,0 +1,36 @@ +call plug#begin('~/.config/nvim/plugged') + +" Make sure you use single quotes +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'jiangmiao/auto-pairs' +Plug 'scrooloose/nerdtree' +" Plug 'Yggdroot/indentLine' +" Plug 'neoclide/coc.nvim', {'branch': 'release'} +call plug#end() + +let g:airline_theme="solarized" + +autocmd vimenter * NERDTree +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif + +filetype plugin indent on +set tabstop=4 +set shiftwidth=4 +set expandtab + +set nu + +" use <tab> for trigger completion and navigate to the next complete item +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' +endfunction + +" inoremap <silent><expr> <Tab> +" \ pumvisible() ? "\<C-n>" : +" \ <SID>check_back_space() ? "\<Tab>" : +" \ coc#refresh() + +let NERDTreeQuitOnOpen=1 +map <F3> :NERDTreeToggle<CR> diff --git a/nvim/.stow-local-ignore b/nvim/.stow-local-ignore new file mode 100644 index 0000000..6d42350 --- /dev/null +++ b/nvim/.stow-local-ignore @@ -0,0 +1 @@ +\.config\/nvim\/plugged.*$ diff --git a/rime/.config/ibus/rime/default.custom.yaml b/rime/.config/ibus/rime/default.custom.yaml new file mode 100644 index 0000000..3a9a9d6 --- /dev/null +++ b/rime/.config/ibus/rime/default.custom.yaml @@ -0,0 +1,13 @@ +patch: + menu/page_size: 9 + schema_list: + - schema: luna_pinyin_simp + - schema: jyutping + switcher: + caption: "切换模式" + hotkeys: + - F4 + save_options: + - extended_charset + fold_options: true + option_list_separator: ' / ' diff --git a/rime/.config/ibus/rime/jyutping.custom.yaml b/rime/.config/ibus/rime/jyutping.custom.yaml new file mode 100644 index 0000000..db64d1b --- /dev/null +++ b/rime/.config/ibus/rime/jyutping.custom.yaml @@ -0,0 +1,8 @@ +patch: + switches: + - name: ascii_mode + reset: 1 + states: [ 中文, 英文 ] + - name: simplification + reset: 1 + states: [ 繁体, 简体 ] diff --git a/rime/.config/ibus/rime/luna_pinyin_simp.custom.yaml b/rime/.config/ibus/rime/luna_pinyin_simp.custom.yaml new file mode 100644 index 0000000..872e5cb --- /dev/null +++ b/rime/.config/ibus/rime/luna_pinyin_simp.custom.yaml @@ -0,0 +1,8 @@ +patch: + switches: + - name: ascii_mode + reset: 1 + states: [ 中文, 英文 ] + - name: zh_simp + reset: 1 + states: [ 繁體, 简体 ] diff --git a/rime/.stow-local-ignore b/rime/.stow-local-ignore new file mode 100644 index 0000000..9e11d90 --- /dev/null +++ b/rime/.stow-local-ignore @@ -0,0 +1 @@ +\.config\/ibus\/rime\/.*(?<!\.custom\.yaml)$ |