-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to nightly vim with treesitter, galaxyline and colorizer.
Fix init vim
- Loading branch information
Showing
25 changed files
with
639 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
" ============================================================================= | ||
" FILETYPE | ||
" ============================================================================= | ||
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading=1 | ||
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 | ||
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global=1 | ||
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | ||
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | ||
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | ||
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | ||
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | ||
autocmd BufNewFile,BufRead /tmp/mutt-* set filetype=mail | ||
autocmd BufNewFile,BufRead /*.rasi setf css | ||
autocmd BufEnter * if (winnr("$") == 1 && &filetype == 'coc-explorer') | q | endif | ||
" autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete | ||
" autocmd FileType ruby,eruby let g:rubycomplete_load_gemfile=1 | ||
" autocmd FileType ruby,eruby let g:rubycomplete_use_bundler=1 | ||
" autocmd BufRead,BufNewFile *.md setlocal spell | ||
|
||
" ============================================================================= | ||
" SUBTYPES | ||
" ============================================================================= | ||
" Ruby | ||
augroup ruby_subtypes | ||
autocmd! | ||
autocmd BufNewFile,BufRead *.pdf.erb let b:eruby_subtype='html' | ||
autocmd BufNewFile,BufRead *.pdf.erb set filetype=eruby | ||
augroup END | ||
|
||
" Jquery | ||
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
" ============================================================================ | ||
" HIGHLIGHT | ||
" ============================================================================= | ||
" Make background transparent for many things | ||
hi! Normal ctermbg=NONE guibg=NONE | ||
hi! NonText ctermbg=NONE guibg=NONE | ||
hi! LineNr ctermfg=NONE guibg=NONE | ||
hi! SignColumn ctermfg=NONE guibg=NONE | ||
hi! StatusLine guifg=NONE guibg=NONE | ||
hi! StatusLineNC guifg=NONE guibg=NONE | ||
" Try to hide vertical spit and end of buffer symbol | ||
hi! VertSplit gui=NONE guifg=NONE guibg=NONE cterm=NONE | ||
hi! EndOfBuffer ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE | ||
" Make background color transparent for git changes | ||
hi! SignifySignAdd guibg=NONE | ||
hi! SignifySignDelete guibg=NONE | ||
hi! SignifySignChange guibg=NONE | ||
" hi CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE | ||
" Gruvbox | ||
" For list | ||
hi NonText ctermfg=16 guifg=#FABD2F | ||
hi SpecialKey ctermfg=16 guifg=#FBCB8B | ||
"Gruvbox color for sneak | ||
hi Sneak gui=bold guifg=#1d2021 guibg=#FABD2F | ||
hi SneakScope guifg=#1d2021 guibg=#FABD2F | ||
hi SneakLabelMask guifg=#FABD2F guibg=#FABD2F | ||
" Gruvbox floaterm | ||
hi FloatermBorder guifg=#83a598 | ||
" " Nord | ||
" hi NonText ctermfg=16 guifg=#EBCB8B | ||
" hi SpecialKey ctermfg=16 guifg=#EBCB8B | ||
" " Nord color for sneak | ||
" hi Sneak gui=bold guifg=#D8Dee9 guibg=#5E81AC | ||
" hi SneakScope guifg=#2E3440 guibg=#EBCB8B | ||
" hi SneakLabelMask guifg=#5E81AC guibg=#5E81AC | ||
" " Nord floaterm | ||
" hi FloatermBorder guifg=#EBCB8B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
nnoremap <F3> :set number! relativenumber!<CR> | ||
nmap <F4> :set list! list?<CR> | ||
nnoremap <silent> <F5> :FloatermToggle<CR> | ||
tnoremap <silent> <F5> <C-\><C-n>:FloatermToggle<CR> | ||
nnoremap <silent> <F6> :FloatermNext<CR> | ||
tnoremap <silent> <F6> <C-\><C-n>:FloatermNext<CR> | ||
nmap <silent> <F7> :CocCommand explorer --width 80<CR> | ||
nmap <F8> :Vista<CR> | ||
nmap <F9> :VenterToggle<CR> | ||
autocmd FileType ruby nmap <F10> :call RunWith("ruby")<cr> | ||
autocmd FileType json nmap <F10> :%!python -m json.tool<cr> | ||
nmap <Leader>bda :bd <C-a><CR> | ||
nmap <Leader>bn :bn<CR> | ||
nmap <Leader>bp :bp<CR> | ||
nmap <Leader>bb :Buffers<CR> | ||
nmap <Leader>nm :Dispatch npm start<CR> | ||
nmap <Leader>nv :NV<CR> | ||
nmap <silent> <Leader>p :call fzf#vim#files('', fzf#vim#with_preview({'options': '--prompt "λ -> "'}))<CR> | ||
nmap <Leader>r :Rg<CR> | ||
nmap <Leader>tt :Rg TODO:<CR> | ||
nmap <Leader>l :Lines<CR> | ||
nmap <Leader>h :History<CR> | ||
nmap <Leader>tc :Colors<CR> | ||
nmap <Leader>m :Marks<CR> | ||
nmap <Leader>v :Vista finder<CR> | ||
nmap <silent> <Leader>g :GFiles?<CR> | ||
nmap <Leader>gv :GV<CR> | ||
nmap <Leader>gg :FloatermNew lazygit<CR> | ||
nmap <Leader>gf :20G<CR> | ||
nmap <Leader>gi :GIssue<CR> | ||
nmap <silent> <Leader>sp :set spell!<CR> | ||
nmap K <Plug>(devdocs-under-cursor) | ||
nmap <C-F>f <Plug>CtrlSFPrompt | ||
vmap <C-F>f <Plug>CtrlSFVwordExec | ||
nmap <C-F>n <Plug>CtrlSFCwordExec | ||
nnoremap <C-F>t :CtrlSFToggle<CR> | ||
xmap ga <Plug>(EasyAlign) | ||
nmap ga <Plug>(EasyAlign) | ||
map f <Plug>Sneak_f | ||
map F <Plug>Sneak_F | ||
map t <Plug>Sneak_t | ||
map T <Plug>Sneak_T | ||
nnoremap <silent> <space>y :<C-u>CocList -A --normal yank<cr> |
Oops, something went wrong.