Compare commits

..

9 Commits

Author SHA1 Message Date
f11ad31663 neovim으로 다시 돌아감 2021-07-24 02:40:01 +09:00
ed5e9623f3 Merge branch 'master' of github.com:vbalien/newdotfiles 2021-07-18 16:25:19 +09:00
e1fbee9f58 style: tomorrow로 테마 변경 2021-07-18 16:23:53 +09:00
bee59ec71a Update 2021-04-20 04:29:44 +09:00
e0faea0c10 Update 2021-04-20 04:27:27 +09:00
089d44c282 Add synology 2021-04-20 04:24:26 +09:00
363ccdcfd7 Merge branch 'master' of https://git.alien.moe/vbalien/newdotfiles 2021-04-13 21:04:26 +09:00
e60c93c7de Remove git-flow-completion 2021-04-13 21:04:00 +09:00
b8ba840029 Update 2021-04-13 21:00:02 +09:00
14 changed files with 309 additions and 166 deletions

View File

@@ -4,17 +4,23 @@ import:
window: window:
dimensions: dimensions:
columns: 80 columns: 80
lines: 25 lines: 24
padding: padding:
x: 6 x: 6
y: 6 y: 6
decorations: none
font: font:
normal: normal:
family: TerminessTTF Nerd Font family: TerminessTTF Nerd Font
size: 16.0 size: 16.0
colors:
background_opacity: 0.9 background_opacity: 0.96
key_bindings:
- { key: Period, mods: Command, chars: "\\f" }
- { key: P, mods: Command, chars: "\\p" }
env:
TERM: screen-256color

View File

@@ -0,0 +1,36 @@
# Base16 Tomorrow - alacritty color config
# Chris Kempson (http://chriskempson.com)
colors:
# Default colors
primary:
background: '0xffffff'
foreground: '0x4d4d4c'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '0xffffff'
cursor: '0x4d4d4c'
# Normal colors
normal:
black: '0xffffff'
red: '0xc82829'
green: '0x718c00'
yellow: '0xeab700'
blue: '0x4271ae'
magenta: '0x8959a8'
cyan: '0x3e999f'
white: '0x4d4d4c'
# Bright colors
bright:
black: '0x8e908c'
red: '0xf5871f'
green: '0xe0e0e0'
yellow: '0xd6d6d6'
blue: '0x969896'
magenta: '0x282a2e'
cyan: '0xa3685a'
white: '0x1d1f21'
draw_bold_text_with_bright_colors: false

View File

@@ -1,53 +0,0 @@
colors:
primary:
background: '0x282a36'
foreground: '0xf8f8f2'
cursor:
text: CellBackground
cursor: CellForeground
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
search:
matches:
foreground: '0x44475a'
background: '0x50fa7b'
focused_match:
foreground: '0x44475a'
background: '0xffb86c'
bar:
background: '0x282a36'
foreground: '0xf8f8f2'
line_indicator:
foreground: None
background: None
selection:
text: CellForeground
background: '0x44475a'
normal:
black: '0x000000'
red: '0xff5555'
green: '0x50fa7b'
yellow: '0xf1fa8c'
blue: '0xbd93f9'
magenta: '0xff79c6'
cyan: '0x8be9fd'
white: '0xbfbfbf'
bright:
black: '0x4d4d4d'
red: '0xff6e67'
green: '0x5af78e'
yellow: '0xf4f99d'
blue: '0xcaa9fa'
magenta: '0xff92d0'
cyan: '0x9aedfe'
white: '0xe6e6e6'
dim:
black: '0x14151b'
red: '0xff2222'
green: '0x1ef956'
yellow: '0xebf85b'
blue: '0x4d5b86'
magenta: '0xff46b0'
cyan: '0x59dffc'
white: '0xe6e6d1'

View File

@@ -57,10 +57,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}" # info ic="${reset}" # info
c0="${reset}${blue}" # first color c0="${reset}${magenta}" # first color
## OUTPUT ## OUTPUT

View File

@@ -6,13 +6,13 @@ spacebar -m config spacing_left 25
spacebar -m config spacing_right 15 spacebar -m config spacing_right 15
spacebar -m config text_font "TerminessTTF Nerd Font:Normal:17.0" spacebar -m config text_font "TerminessTTF Nerd Font:Normal:17.0"
spacebar -m config icon_font "TerminessTTF Nerd Font:Bold:17.0" spacebar -m config icon_font "TerminessTTF Nerd Font:Bold:17.0"
spacebar -m config background_color 0xff282a36 spacebar -m config background_color 0x00282a36
spacebar -m config foreground_color 0xffa8a8a8 spacebar -m config foreground_color 0xffFFFFFF
spacebar -m config space_icon_color 0xffbd93f9 spacebar -m config space_icon_color 0xffFFFFFF
spacebar -m config power_icon_color 0xffcd950c spacebar -m config power_icon_color 0xffFFFFFF
spacebar -m config battery_icon_color 0xffd75f5f spacebar -m config battery_icon_color 0xffd75f5f
spacebar -m config dnd_icon_color 0xffa8a8a8 spacebar -m config dnd_icon_color 0xffFFFFFF
spacebar -m config clock_icon_color 0xffa8a8a8 spacebar -m config clock_icon_color 0xffFFFFFF
spacebar -m config space_icon_strip 1: 2: 3: 4: 5: spacebar -m config space_icon_strip 1: 2: 3: 4: 5:
spacebar -m config power_icon_strip   spacebar -m config power_icon_strip  
spacebar -m config space_icon  spacebar -m config space_icon 

View File

@@ -3,7 +3,6 @@
sudo yabai --load-sa sudo yabai --load-sa
sleep 5 sleep 5
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
brew services restart spacebar
open -a /Applications/Telegram.app open -a /Applications/Telegram.app
yabai -m config layout bsp yabai -m config layout bsp
@@ -12,7 +11,7 @@ yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse autofocus yabai -m config focus_follows_mouse autofocus
yabai -m config window_placement second_child yabai -m config window_placement second_child
yabai -m config external_bar main:30:0 yabai -m config external_bar main:25:0
yabai -m config top_padding 20 yabai -m config top_padding 20
yabai -m config bottom_padding 20 yabai -m config bottom_padding 20
yabai -m config left_padding 20 yabai -m config left_padding 20
@@ -32,13 +31,29 @@ yabai -m config normal_window_opacity 0.90
yabai -m config mouse_modifier alt yabai -m config mouse_modifier alt
yabai -m rule --add app="^IINA$" sticky=on layer=above manage=off border=off yabai -m rule --add app="^IINA$" sticky=on layer=above manage=off border=off
yabai -m rule --add app="^시스템 환경설정$" layer=above manage=off yabai -m rule --add app="^시스템 환경설정$" layer=above manage=off border=off
yabai -m rule --add app="^Telegram$" layer=above manage=off sticky=on yabai -m rule --add app="^Telegram$" layer=above manage=off sticky=on border=off
yabai -m rule --add app="^Transmission Remote GUI$" layer=above manage=off yabai -m rule --add app="^Transmission Remote GUI$" layer=above manage=off border=off
yabai -m rule --add app="^Finder$" layer=above manage=off border=off yabai -m rule --add app="^Finder$" layer=above manage=off border=off
yabai -m rule --add app="^카카오톡$" layer=above manage=off sticky=on
yabai -m rule --add app=Google\ Chrome space=3 yabai -m rule --add app=Google\ Chrome space=3
yabai -m rule --add app=Microsoft\ Edge space=3
yabai -m rule --add app="^Code$" space=4 yabai -m rule --add app="^Code$" space=4
yabai -m space 1 --label ""
yabai -m space 2 --label ""
yabai -m space 3 --label ""
yabai -m space 4 --label ""
yabai -m space 5 --label ""
yabai -m signal --add event=application_activated \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"vbalien-title-jsx\"'"
yabai -m signal --add event=window_title_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"vbalien-title-jsx\"'"
yabai -m signal --add event=space_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"vbalien-workspace-jsx\"'"
osascript -e 'tell application "Übersicht" to refresh widget id "vbalien-workspace-jsx"'
echo "yabai configuration loaded.." echo "yabai configuration loaded.."

View File

@@ -14,6 +14,14 @@ const common: DotOption = {
}, },
}; };
const synology: DotOption = {
hostname: "nas",
link: {
...common.link,
".local/bin/ufetch": "synology/bin/ufetch",
},
};
const darwin: DotOption = { const darwin: DotOption = {
hostname: "MacBook-Pro.local", hostname: "MacBook-Pro.local",
install: [ install: [
@@ -92,7 +100,7 @@ const linuxHiDPI: DotOption = {
}; };
try { try {
await dot(Deno.args, [common, linux, linuxHiDPI, darwin]); await dot(Deno.args, [common, linux, linuxHiDPI, darwin, synology]);
} catch (err) { } catch (err) {
console.log(err.message); console.log(err.message);
} }

3
nvim/coc-settings.json Normal file
View File

@@ -0,0 +1,3 @@
{
"coc.preferences.formatOnSaveFiletypes": ["*"]
}

View File

@@ -1,17 +1,15 @@
call plug#begin('~/.local/share/nvim/plugged') call plug#begin(stdpath('data') . '/plugged')
" Prettier
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
" 아이콘 폰트 사용 " 아이콘 폰트 사용
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
" Start page
Plug 'mhinz/vim-startify'
" NERDTree " NERDTree
" NERDTree git Plug 'preservim/nerdtree' |
Plug 'preservim/nerdtree' \ Plug 'Xuyuanp/nerdtree-git-plugin' |
" NERDTree icon color \ Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
" Restore Session " Restore Session
Plug 'tpope/vim-obsession' Plug 'tpope/vim-obsession'
@@ -24,14 +22,16 @@ Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
" 컬러 테마 " color scheme theme
Plug 'tomasiser/vim-code-dark' Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'NLKNguyen/papercolor-theme'
Plug 'scheakur/vim-scheakur' " automatic closing of quotes, parenthesis, brackets, etc.
Plug 'junegunn/seoul256.vim' Plug 'Raimondi/delimitMate'
" Language Pack " Language Pack
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
" indent 표시 " indent 표시
Plug 'Yggdroot/indentLine' Plug 'Yggdroot/indentLine'
@@ -42,28 +42,12 @@ Plug 'wakatime/vim-wakatime'
" git status " git status
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
" Auto Complete
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/echodoc.vim'
" LSP
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
Plug 'vim-scripts/SyntaxComplete'
" TypeScript
Plug 'HerringtonDarkholme/yats.vim'
Plug 'mhartington/nvim-typescript', {'do': './install.sh'}
Plug 'Shougo/denite.nvim'
call plug#end() call plug#end()
set smartindent set smartindent
set backspace=2 set autoindent
set cindent set cindent
set backspace=2
set tabstop=2 set tabstop=2
set shiftwidth=2 set shiftwidth=2
set expandtab set expandtab
@@ -72,47 +56,59 @@ set ruler
set title set title
set hlsearch set hlsearch
set cursorline set cursorline
syntax on syntax enable
set t_Co=256
if (has("termguicolors"))
set termguicolors
endif
set clipboard+=unnamedplus if has('nvim')
set clipboard+=unnamedplus
else
set clipboard=unnamed
end
set laststatus=2 set laststatus=2
set shell=/bin/bash set shell=/bin/bash
set fillchars+=vert:┃ set fillchars+=vert:┃
set mouse=a set mouse=a
if !has('nvim')
if has("mouse_sgr")
set ttymouse=sgr
else
set ttymouse=xterm2
end
end
lang ko_KR.UTF-8
set encoding=UTF-8 set encoding=UTF-8
" theme config
let g:dracula_italic = 0
colorscheme dracula
hi Normal guibg=NONE ctermbg=NONE
" 단축키 설정 " 단축키 설정
nmap <C-p> :FZF<cr> nmap <C-p> :FZF<cr>
nmap <Leader>p :FZF<cr>
nmap <Tab> :NERDTreeToggle<cr> nmap <Tab> :NERDTreeToggle<cr>
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
inoremap <expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>" inoremap <expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"
" detect extension
" theme config autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact
let g:PaperColor_Theme_Options = { autocmd BufNewFile,BufRead *.jsx set filetype=javascriptreact
\ 'theme': { autocmd BufNewFile,BufRead .eslintrc,.prettierrc,.parcelrc set filetype=json
\ 'default': {
\ 'transparent_background': 1
\ }
\ }
\ }
set background=light
colorscheme seoul256-light
hi Normal guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE
" devicons " devicons
let g:WebDevIconsUnicodeDecorateFolderNodes = 1 let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:DevIconsEnableFoldersOpenClose = 1 let g:DevIconsEnableFoldersOpenClose = 1
" airline " airline
let g:airline_theme = 'base16' let g:airline_theme='dracula'
let g:airline_powerline_fonts=0 let g:airline_powerline_fonts=0
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#tab_nr_type = 1 " tab number let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
@@ -129,28 +125,52 @@ let g:cpp_class_decl_highlight = 1
let g:cpp_concepts_highlight = 1 let g:cpp_concepts_highlight = 1
let g:cpp_experimental_template_highlight = 1 let g:cpp_experimental_template_highlight = 1
" LSP
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ 'c': ['clangd'],
\ 'cpp': ['clangd'],
\ }
execute 'autocmd FileType '
\ . join(keys(g:LanguageClient_serverCommands), ',')
\ . ' autocmd BufWritePre <buffer> call LanguageClient#textDocument_formatting_sync()'
" deoplete
let g:deoplete#enable_at_startup = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>"
set shortmess+=c
set completeopt-=preview
" echodoc
let g:echodoc#enable_at_startup = 1
let g:echodoc#type = 'floating'
highlight link EchoDocFloat Pmenu
" prettier " prettier
let g:prettier#autoformat = 1 let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0 let g:prettier#autoformat_require_pragma = 0
" nerdtree
let g:NERDTreeWinPos = 'right'
let g:NERDTreeShowHidden=1
let g:NERDTreeAutoDeleteBuffer=1
let g:NERDTreeMinimalUI=1
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
let g:indentLine_char='│'
let g:indentLine_color_gui='gray'
"""
" Coc
"""
" Use K to show documentation in preview window.
nmap <leader>f <Plug>(coc-codeaction)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
call CocActionAsync('doHover')
endfunction
" Cursor symbol highlight
autocmd CursorHold * silent call CocActionAsync('highlight')
" Coc Prettier
command! -nargs=0 Prettier :CocCommand prettier.formatFile
""" delimitMate
let delimitMate_expand_cr=1

View File

@@ -39,8 +39,6 @@ case ${SOLARIZED_THEME:-dark} in
*) CURRENT_FG='black';; *) CURRENT_FG='black';;
esac esac
CURRENT_FG='8'
# Special Powerline characters # Special Powerline characters
() { () {
@@ -206,7 +204,7 @@ prompt_hg() {
# Dir: current working directory # Dir: current working directory
prompt_dir() { prompt_dir() {
prompt_segment blue $CURRENT_FG '%~' prompt_segment magenta $CURRENT_FG '%~'
} }
# Virtualenv: current working virtualenv # Virtualenv: current working virtualenv

54
synology/bin/ufetch Executable file
View File

@@ -0,0 +1,54 @@
#!/bin/sh
#
# ufetch-arch - tiny system info for arch
## INFO
# user is already defined
host="$(cat /etc/hostname)"
os='Synology'
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
packages="$(opkg list-installed | wc -l)"
shell="$(basename "$SHELL")"
## UI DETECTION
ui='DSM'
uitype='UI'
## DEFINE COLORS
# probably don't change these
if [ -x "$(command -v tput)" ]; then
bold="$(tput bold)"
black="$(tput setaf 0)"
red="$(tput setaf 1)"
green="$(tput setaf 2)"
yellow="$(tput setaf 3)"
blue="$(tput setaf 4)"
magenta="$(tput setaf 5)"
cyan="$(tput setaf 6)"
white="$(tput setaf 7)"
reset="$(tput sgr0)"
fi
# you can change these
lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}" # info
c0="${reset}${blue}" # first color
## OUTPUT
cat <<EOF
${c0} _____ ${reset}
${c0} / ____| ${nc}${USER}${ic}@${nc}${host}${reset}
${c0}| (___ _ _ ${lc}OS: ${ic}${os}${reset}
${c0} \___ \| | | | ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} ____) | |_| | ${lc}UPTIME: ${ic}${uptime}${reset}
${c0}|_____/ \__, | ${lc}PACKAGES: ${ic}${packages}${reset}
${c0} __/ | ${lc}SHELL: ${ic}${shell}${reset}
${c0} |___/ ${lc}${uitype}: ${ic}${ui}${reset}
EOF

View File

@@ -12,11 +12,11 @@ set-option -g @pane_resize "1"
set -g @yank_selection_mouse 'clipboard' set -g @yank_selection_mouse 'clipboard'
set -g mouse on set -g mouse on
set -g default-terminal screen-256color set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# bind -n End send-key C-e # bind -n End send-key C-e
# bind -n Home send-key C-a # bind -n Home send-key C-a

78
vimrc
View File

@@ -7,6 +7,10 @@ Plug 'prettier/vim-prettier', {
" 아이콘 폰트 사용 " 아이콘 폰트 사용
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
" Start page
Plug 'mhinz/vim-startify'
" NERDTree " NERDTree
" NERDTree git " NERDTree git
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
@@ -27,10 +31,13 @@ Plug 'vim-airline/vim-airline-themes'
" 컬러 테마 " 컬러 테마
Plug 'dracula/vim', { 'as': 'dracula' } Plug 'dracula/vim', { 'as': 'dracula' }
" automatic closing of quotes, parenthesis, brackets, etc.
Plug 'Raimondi/delimitMate'
" Language Pack " Language Pack
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
" indent 표시 " indent 표시
Plug 'Yggdroot/indentLine' Plug 'Yggdroot/indentLine'
@@ -54,7 +61,11 @@ set ruler
set title set title
set hlsearch set hlsearch
set cursorline set cursorline
syntax on syntax enable
set t_Co=256
if (has("termguicolors"))
set termguicolors
endif
set clipboard=unnamed set clipboard=unnamed
" set clipboard+=unnamedplus " set clipboard+=unnamedplus
@@ -64,33 +75,38 @@ set shell=/bin/bash
set fillchars+=vert:┃ set fillchars+=vert:┃
set mouse=a set mouse=a
if has("mouse_sgr")
set ttymouse=sgr
else
set ttymouse=xterm2
end
set encoding=UTF-8 set encoding=UTF-8
" theme config
let g:dracula_italic = 0
colorscheme dracula
hi Normal guibg=NONE ctermbg=NONE
" 단축키 설정 " 단축키 설정
nmap <C-p> :FZF<cr> nmap <C-p> :FZF<cr>
nmap <Leader>p :FZF<cr>
nmap <Tab> :NERDTreeToggle<cr> nmap <Tab> :NERDTreeToggle<cr>
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
inoremap <expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>" inoremap <expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"
" extension " detect extension
autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact
autocmd BufNewFile,BufRead *.jsx set filetype=javascriptreact
" theme config autocmd BufNewFile,BufRead .eslintrc set filetype=json
let g:dracula_colorterm = 0
let g:dracula_italic = 0
colorscheme dracula
hi Normal guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE
" devicons " devicons
let g:WebDevIconsUnicodeDecorateFolderNodes = 1 let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:DevIconsEnableFoldersOpenClose = 1 let g:DevIconsEnableFoldersOpenClose = 1
" airline " airline
let g:airline_theme = 'base16' let g:airline_theme='dracula'
let g:airline_powerline_fonts=0 let g:airline_powerline_fonts=0
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#tab_nr_type = 1 " tab number let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
@@ -112,4 +128,38 @@ let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0 let g:prettier#autoformat_require_pragma = 0
" nerdtree " nerdtree
let NERDTreeShowHidden=1 let g:NERDTreeWinPos = 'right'
let g:NERDTreeShowHidden=1
let g:NERDTreeAutoDeleteBuffer=1
let NERDTreeMinimalUI=1
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
let g:indentLine_char='│'
let g:indentLine_color_gui='gray'
"""
" Coc
"""
" Use K to show documentation in preview window.
nmap <leader>f <Plug>(coc-codeaction)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
autocmd CursorHold * silent call CocActionAsync('highlight')
function! s:show_documentation()
call CocActionAsync('doHover')
endfunction

10
zshrc
View File

@@ -1,7 +1,7 @@
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
export DENO_INSTALL="/home/vbalien/.deno" export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH" export PATH="$DENO_INSTALL/bin:$PATH"
export PATH="$PATH:$HOME/go/bin" export PATH="$PATH:$HOME/go/bin"
@@ -9,7 +9,7 @@ export PATH="$HOME/.yarn/bin:$PATH"
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
export FZF_DEFAULT_COMMAND='fd --type f' export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
# Set name of the theme to load --- if set to "random", it will # Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case, # load a random theme each time oh-my-zsh is loaded, in which case,
@@ -104,6 +104,7 @@ source $ZSH/oh-my-zsh.sh
# Example aliases # Example aliases
# alias zshconfig="mate ~/.zshrc" # alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
alias vim=nvim
alias vi=vim alias vi=vim
TERM=xterm-256color TERM=xterm-256color
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
@@ -111,6 +112,11 @@ export GPG_TTY=$(tty)
if [[ `uname` != "Darwin" ]]; then if [[ `uname` != "Darwin" ]]; then
alias open=xdg-open alias open=xdg-open
fi fi
if [[ -f "/etc/synoinfo.conf" ]]; then
export PATH="$PATH:/opt/bin"
fi
ufetch ufetch
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh