Compare commits
6 Commits
8143c60b21
...
65013e1ac5
Author | SHA1 | Date |
---|---|---|
Julian Ospald | 65013e1ac5 | |
Julian Ospald | 97875214fa | |
Julian Ospald | efc29ec3b9 | |
Julian Ospald | 6f5ba10aa6 | |
Julian Ospald | 58dae500af | |
Julian Ospald | 8350566c14 |
|
@ -9,6 +9,7 @@ call CmdAlias('hasktags', '!hasktags -c .<CR>')
|
|||
" from
|
||||
" https://raw.githubusercontent.com/begriffs/haskell-vim-now/master/git-hscope
|
||||
call CmdAlias('codex', 'call system("haskell-ctags")<CR><CR>call LoadHscope()<CR>')
|
||||
call CmdAlias('Cc', 'Clap commits<CR>')
|
||||
|
||||
|
||||
map <leader>ctg :codex<CR>
|
||||
|
@ -18,7 +19,6 @@ set tags=tags;/,codex.tags;/
|
|||
" nnoremap <leader>gd <C-]>
|
||||
|
||||
" nnoremap <silent> <leader>cgd :cs find g <C-R>=expand("<cword>")<CR><CR>
|
||||
nnoremap <silent> <leader>cgd :Tags <C-R>=expand("<cword>")<CR><CR>
|
||||
nnoremap <silent> <C-\> :cs find c <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
set cscopeprg=do_at_stack_root\ hscope
|
||||
|
@ -55,14 +55,24 @@ let g:haskell_indent_disable = 0
|
|||
" let g:haskell_enable_arrowsyntax = 1
|
||||
" let g:haskell_enable_pattern_synonyms = 1
|
||||
" let g:haskell_enable_typeroles = 1
|
||||
" let g:haskell_indent_if = 3
|
||||
" let g:haskell_indent_case = 5
|
||||
" let g:haskell_indent_let = 4
|
||||
let g:haskell_indent_where = 2
|
||||
" let g:haskell_indent_do = 3
|
||||
" let g:haskell_indent_in = 1
|
||||
let g:haskell_disable_TH = 1
|
||||
let g:haskell_indent_if = 0
|
||||
let g:haskell_indent_case = 4
|
||||
let g:haskell_indent_let = 4
|
||||
let g:haskell_indent_where = 6
|
||||
let g:haskell_indent_before_where = 2
|
||||
let g:haskell_indent_after_bare_where = 2
|
||||
let g:haskell_indent_do = 4
|
||||
let g:haskell_indent_in = 0
|
||||
let g:haskell_indent_guard = 4
|
||||
" let g:haskell_disable_TH = 1
|
||||
|
||||
" vim-hindent
|
||||
let g:hindent_on_save = 0
|
||||
let g:hindent_indent_size = 4
|
||||
let g:hindent_line_length = 80
|
||||
|
||||
" vim-stylishhask
|
||||
let g:stylishask_on_save = 0
|
||||
|
||||
" haskellmode-vim
|
||||
function! HaskellDocCurrentWord()
|
||||
|
@ -73,8 +83,8 @@ endfunction
|
|||
" done by LSP now
|
||||
nmap <F7> :call HaskellDocCurrentWord()<CR><CR>
|
||||
|
||||
nmap <silent> <F3> :silent update <bar> HsimportModule<CR>
|
||||
nmap <silent> <F4> :silent update <bar> HsimportSymbol<CR>
|
||||
" nmap <silent> <F3> :silent update <bar> HsimportModule<CR>
|
||||
" nmap <silent> <F4> :silent update <bar> HsimportSymbol<CR>
|
||||
|
||||
|
||||
" liquid-types
|
||||
|
@ -94,30 +104,6 @@ let g:vim_annotations_offset = '/.liquid/'
|
|||
" endfunction
|
||||
|
||||
|
||||
|
||||
" nnoremap <leader>ld :call LanguageClient#textDocument_definition()<CR>
|
||||
" nnoremap <leader>lr :call LanguageClient#textDocument_rename()<CR>
|
||||
" nnoremap <leader>lf :call LanguageClient#textDocument_formatting()<CR>
|
||||
" nnoremap <leader>lt :call LanguageClient#textDocument_typeDefinition()<CR>
|
||||
" nnoremap <leader>lx :call LanguageClient#textDocument_references()<CR>
|
||||
" nnoremap <leader>la :call LanguageClient_workspace_applyEdit()<CR>
|
||||
" nnoremap <leader>lc :call LanguageClient#textDocument_completion()<CR>
|
||||
" nnoremap <leader>lh :call LanguageClient#textDocument_hover()<CR>
|
||||
" nnoremap <leader>ls :call LanguageClient_textDocument_documentSymbol()<CR>
|
||||
" nnoremap <leader>lm :call LanguageClient_contextMenu()<CR>
|
||||
" nnoremap <F6> :call LanguageClient#textDocument_hover()<CR>
|
||||
|
||||
|
||||
" deoplete
|
||||
"call deoplete#custom#option('sources',{
|
||||
" \ '_': ['buffer'],
|
||||
" \ 'haskell': ['neosnippet', 'buffer', 'file', 'neco-ghc']
|
||||
" \ })
|
||||
" " \ 'haskell': ['neosnippet', 'buffer', 'file', 'neco-ghc']
|
||||
"call deoplete#enable()
|
||||
"call deoplete#enable_logging('DEBUG', $HOME . '/deoplete.log')
|
||||
"" inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
|
||||
let g:ghcmod_hlint_options = ['--ignore=Eta reduce $']
|
||||
|
||||
" ALE
|
||||
|
@ -132,73 +118,17 @@ let g:ale_haskell_argon_error_level = 14
|
|||
let g:ale_haskell_argon_warn_level = 10
|
||||
let g:ale_haskell_argon_info_level = 6
|
||||
|
||||
" completion
|
||||
"
|
||||
" neco-ghc
|
||||
" let g:necoghc_enable_detailed_browse = 1
|
||||
" let g:haskellmode_completion_ghc = 0
|
||||
" autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
|
||||
" let g:ycm_semantic_triggers = {'haskell' : ['.']}
|
||||
|
||||
" let g:ycm_language_server = [ { 'name': 'haskell', 'filetypes': [ 'haskell', 'hs', 'lhs' ], 'cmdline': [ 'hie-wrapper' ], 'project_root_files': [ '.stack.yaml', 'cabal.config', 'package.yaml', 'cabal.project' ] } ]
|
||||
|
||||
|
||||
|
||||
" clear search
|
||||
" nmap <F2> :noh<CR>:GhcModTypeClear<CR>
|
||||
" imap <F2> <C-O>:noh<CR>:GhcModTypeClear<CR>
|
||||
|
||||
" unmap <F3>
|
||||
" unmap <F4>
|
||||
|
||||
" nmap <F6> :GhcModType<CR>
|
||||
|
||||
" for intero
|
||||
" if has("nvim")
|
||||
" let g:ale_enabled = 0
|
||||
|
||||
" " let g:intero_backend = {
|
||||
" " \ 'command': 'cabal new-repl',
|
||||
" " \ 'options': '',
|
||||
" " \ 'cwd': expand('%:p:h'),
|
||||
" " \}
|
||||
|
||||
" " Intero starts automatically. Set this if you'd like to prevent that.
|
||||
" let g:intero_start_immediately = 1
|
||||
|
||||
" " Enable type information on hover (when holding cursor at point for ~1 second).
|
||||
" let g:intero_type_on_hover = 1
|
||||
|
||||
" " Change the intero window size; default is 10.
|
||||
" let g:intero_window_size = 15
|
||||
|
||||
" " Sets the intero window to split vertically; default is horizontal
|
||||
" " let g:intero_vertical_split = 1
|
||||
|
||||
" " let g:intero_ghci_options = '-dynamic'
|
||||
|
||||
" " OPTIONAL: Make the update time shorter, so the type info will trigger faster.
|
||||
" set updatetime=1000
|
||||
|
||||
let g:neoformat_enabled_haskell = ['brittany']
|
||||
|
||||
|
||||
|
||||
" map <silent> <leader>t <Plug>InteroGenericType
|
||||
" nnoremap <silent> <leader>jd :InteroGoToDef<CR>
|
||||
" map <silent> <leader>T <Plug>InteroType
|
||||
" nnoremap <silent> <leader>it :InteroTypeInsert<CR>
|
||||
" nnoremap <leader>ist :InteroSetTargets<SPACE>
|
||||
" endif
|
||||
|
||||
|
||||
|
||||
" LSP
|
||||
let g:LanguageClient_rootMarkers = ['cabal.project', '*.cabal', 'stack.yaml']
|
||||
|
||||
" \ 'haskell': ['ghcide', "--lsp"],
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'haskell': ['hie-wrapper', '--lsp'],
|
||||
\ 'haskell': ['haskell-language-server-wrapper', '--lsp'],
|
||||
\ }
|
||||
|
||||
|
||||
|
@ -207,8 +137,8 @@ let g:echodoc#enable_at_startup = 1
|
|||
|
||||
call deoplete#enable()
|
||||
call deoplete#custom#source('LanguageClient',
|
||||
\ 'min_pattern_length',
|
||||
\ 2)
|
||||
\ 'min_pattern_length',
|
||||
\ 2)
|
||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
|
||||
|
||||
|
@ -247,3 +177,18 @@ let g:tagbar_type_haskell = {
|
|||
\ }
|
||||
\ }
|
||||
|
||||
|
||||
" vista
|
||||
let g:vista_ctags_cmd = {
|
||||
\ 'haskell': 'hasktags -x -o - -c',
|
||||
\ }
|
||||
|
||||
|
||||
" vim-lsp
|
||||
if executable('haskell-language-server-wrapper')
|
||||
au User lsp_setup call lsp#register_server({
|
||||
\ 'name': 'hls',
|
||||
\ 'cmd': {server_info->['haskell-language-server-wrapper', '--lsp']},
|
||||
\ 'allowlist': ['haskell'],
|
||||
\ })
|
||||
endif
|
||||
|
|
|
@ -41,12 +41,12 @@ let g:tagbar_ctags_bin = '/usr/bin/exuberant-ctags'
|
|||
" let g:autofmt_autosave = 0
|
||||
|
||||
" deoplete
|
||||
call deoplete#custom#option('sources',{
|
||||
\ '_': ['buffer'],
|
||||
\ 'rust': ['ultisnips', 'buffer', 'file', 'LanguageClient']
|
||||
\ })
|
||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
call deoplete#enable()
|
||||
" call deoplete#custom#option('sources',{
|
||||
" \ '_': ['buffer'],
|
||||
" \ 'rust': ['ultisnips', 'buffer', 'file', 'LanguageClient']
|
||||
" \ })
|
||||
" inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
" call deoplete#enable()
|
||||
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'rust': ['~/.cargo/bin/ra_lsp_server'],
|
||||
|
|
|
@ -3,17 +3,13 @@
|
|||
let g:echodoc#enable_at_startup = 1
|
||||
let g:echodoc#type = 'signature'
|
||||
|
||||
|
||||
"LanguageClient-neovim
|
||||
" Required for operations modifying multiple buffers like rename.
|
||||
set hidden
|
||||
nnoremap <silent> lc :call LanguageClient_contextMenu()<CR>
|
||||
" Or map each action separately
|
||||
nnoremap <silent> T :call LanguageClient#textDocument_hover()<CR>
|
||||
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
||||
|
||||
let g:LanguageClient_autoStart = 0
|
||||
let g:LanguageClient_diagnosticsEnable = 1
|
||||
let g:LanguageClient_diagnosticsList = "Quickfix"
|
||||
let g:LanguageClient_diagnosticsDisplay = {
|
||||
\ 1: {
|
||||
\ "name": "Error",
|
||||
|
@ -58,13 +54,6 @@ let g:LanguageClient_loggingFile = expand('~/LanguageClient.log')
|
|||
let g:LanguageClient_serverStderr = expand('~/LanguageServer.log')
|
||||
|
||||
|
||||
|
||||
|
||||
if !has("nvim")
|
||||
" lj
|
||||
let g:LustyJugglerSuppressRubyWarning = 1
|
||||
endif
|
||||
|
||||
" neosnippet
|
||||
" Plugin key-mappings.
|
||||
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
||||
|
@ -152,35 +141,7 @@ let NERDCreateDefaultMappings=0
|
|||
let g:haddock_browser='/usr/bin/firefox'
|
||||
let g:haddock_browser_callformat='%s file://%s >/dev/null 2>&1 &'
|
||||
|
||||
" ctrlp
|
||||
let g:ctrlp_user_command = 'fd --type f --color=never "" %s'
|
||||
let g:ctrlp_use_caching = 1
|
||||
let g:ctrlp_match_func = { 'match': 'cpsm#CtrlPMatch' }
|
||||
|
||||
" fzf
|
||||
" --column: Show column number
|
||||
" --line-number: Show line number
|
||||
" --no-heading: Do not show file headings in results
|
||||
" --fixed-strings: Search term as a literal string
|
||||
" --ignore-case: Case insensitive search
|
||||
" --no-ignore: Do not respect .gitignore, etc...
|
||||
" --hidden: Search hidden files and folders
|
||||
" --follow: Follow symlinks
|
||||
" --glob: Additional conditions for search (in this case ignore everything in the .git/ folder)
|
||||
" --color: Search color options
|
||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||
|
||||
function! WithGitRoot()
|
||||
let groot = systemlist('git -C ' . expand('%:p:h') . ' rev-parse --show-toplevel')[0]
|
||||
return v:shell_error ? {} : {'dir': groot}
|
||||
endfunction
|
||||
|
||||
command! -nargs=* Rag
|
||||
\ call fzf#vim#ag(<q-args>, WithGitRoot())
|
||||
|
||||
|
||||
" fastfold
|
||||
nmap zuz <Plug>(FastFoldUpdate)
|
||||
let g:fastfold_savehook = 1
|
||||
let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C']
|
||||
let g:fastfold_fold_movement_commands = [']z', '[z', 'zj', 'zk']
|
||||
|
@ -207,10 +168,51 @@ let g:tagbar_map_togglecaseinsensitive = 'zi'
|
|||
let g:NERDTreeMapActivateNode = '<CR>'
|
||||
let g:NERDTreeMapCustomOpen = ''
|
||||
let g:NERDTreeMapOpenExpl = 'n'
|
||||
let g:NERDTreeMapJumpNextSibling = ''
|
||||
" let g:NERDTreeMapOpenSplit = ''
|
||||
" use NERDTree instead of netrw
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
|
||||
|
||||
" overwrite nonsense from editorconfig
|
||||
let g:EditorConfig_max_line_indicator = 'none'
|
||||
" let g:EditorConfig_preserve_formatoptions = 1
|
||||
|
||||
|
||||
" vim current word
|
||||
let g:vim_current_word#highlight_current_word = 0
|
||||
hi default link CurrentWordTwins CursorColumn
|
||||
|
||||
|
||||
" vista
|
||||
let g:vista#renderer#enable_icon = 0
|
||||
|
||||
|
||||
" vim-lsp
|
||||
function! s:on_lsp_buffer_enabled() abort
|
||||
setlocal omnifunc=lsp#complete
|
||||
setlocal signcolumn=yes
|
||||
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
|
||||
nmap <buffer> gd <plug>(lsp-definition)
|
||||
nmap <buffer> gr <plug>(lsp-references)
|
||||
" nmap <buffer> gi <plug>(lsp-implementation)
|
||||
" nmap <buffer> gt <plug>(lsp-type-definition)
|
||||
nmap <buffer> <leader>rn <plug>(lsp-rename)
|
||||
nmap <buffer> .g <Plug>(lsp-previous-diagnostic)
|
||||
nmap <buffer> ,g <Plug>(lsp-next-diagnostic)
|
||||
nmap <buffer> T <plug>(lsp-hover)
|
||||
nmap <buffer> <leader>la <plug>(lsp-code-action)
|
||||
nmap <buffer> <leader>sd <plug>(lsp-document-diagnostics)
|
||||
|
||||
" refer to doc to add more commands
|
||||
endfunction
|
||||
|
||||
augroup lsp_install
|
||||
au!
|
||||
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
|
||||
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||
augroup END
|
||||
|
||||
let g:lsp_auto_enable = 0
|
||||
|
||||
" command -nargs=0 LspStart call lsp#activate()
|
||||
|
|
2597
autoload/plug.vim
2597
autoload/plug.vim
File diff suppressed because it is too large
Load Diff
170
plugin/keys.vim
170
plugin/keys.vim
|
@ -1,6 +1,9 @@
|
|||
nnoremap <SPACE> <Nop>
|
||||
let g:mapleader = ' '
|
||||
|
||||
"
|
||||
nnoremap <Leader>tk <C-w><C-]><C-w>T
|
||||
|
||||
" Quickly insert an empty new line without entering insert mode
|
||||
nnoremap <Leader>o o<Esc>
|
||||
nnoremap <Leader>O O<Esc>
|
||||
|
@ -165,6 +168,10 @@ nmap <leader>pc <Esc>:pc<CR>
|
|||
" inoremap <silent> <A-e> <Esc>:wincmd j<CR>
|
||||
" inoremap <silent> <A-n> <Esc>:wincmd h<CR>
|
||||
" inoremap <silent> <A-i> <Esc>:wincmd l<CR>
|
||||
nnoremap <silent> <C-A-o> :wincmd k<CR>
|
||||
nnoremap <silent> <C-A-e> :wincmd j<CR>
|
||||
nnoremap <silent> <C-A-n> :wincmd h<CR>
|
||||
nnoremap <silent> <C-A-i> :wincmd l<CR>
|
||||
nnoremap <silent> <A-Up> :wincmd k<CR>
|
||||
nnoremap <silent> <A-Down> :wincmd j<CR>
|
||||
nnoremap <silent> <A-Left> :wincmd h<CR>
|
||||
|
@ -187,12 +194,9 @@ nmap <S-F3> :exec("tjump ".expand("<cword>"))<CR>
|
|||
nmap <S-F4> :split<CR>:exec("tjump ".expand("<cword>"))<CR>
|
||||
|
||||
" trigger NERDTree, Tagbar $ Co.
|
||||
nmap <leader>n <Esc>:NERDTreeToggle<CR>
|
||||
nmap <leader>t <Esc>:TagbarToggle<CR>
|
||||
" nmap <leader>n <Esc>:NERDTreeToggle<CR>
|
||||
" nmap <leader>t <Esc>:TagbarToggle<CR>
|
||||
" nmap <leader>f "zyaw :exe ":Ack ".@z.""<CR>
|
||||
nmap <C-f> :CtrlP<CR>
|
||||
nmap <C-t> :CtrlPTag<CR>
|
||||
nmap <C-b> :CtrlPBuffer<CR>
|
||||
|
||||
" grep word under cursor
|
||||
nnoremap <silent><leader>f :lgr! "\b<C-R><C-W>\b"<CR>:cw<CR>
|
||||
|
@ -243,23 +247,13 @@ vnoremap <C-u> 10<C-E>
|
|||
|
||||
|
||||
" F keys
|
||||
nmap <F2> :noh<CR>
|
||||
imap <F2> <C-O>:noh<CR>
|
||||
nmap <F3> :YcmCompleter GoToDeclaration<CR>
|
||||
nmap <F4> :YcmCompleter GoTo<CR>
|
||||
nmap <C-F4> :YcmCompleter GoTo<CR>:wincmd o<CR>
|
||||
" nmap <F2> :noh<CR>
|
||||
" imap <F2> <C-O>:noh<CR>
|
||||
noremap <F5> :FufBuffer<CR>
|
||||
nmap <F7> :call ManCurrentWord()<CR><CR>
|
||||
nmap <F8> :call DevHelpCurrentWord()<CR><CR>
|
||||
nnoremap <silent> <F10> :call NERDComment("n", "Toggle")<cr>
|
||||
vnoremap <silent> <F10> <ESC>:call NERDComment("v", "Toggle")<cr>
|
||||
" nmap <F8> :call DevHelpCurrentWord()<CR><CR>
|
||||
" nmap <F4> <C-]>
|
||||
|
||||
" plugins etc
|
||||
noremap <C-F> :NERDTreeToggle<CR>
|
||||
noremap <C-B> :TagbarToggle<CR>
|
||||
inoremap <C-B> <C-O>:TagbarToggle<CR>
|
||||
|
||||
" remap visual block
|
||||
nnoremap <S-C> <c-v>
|
||||
|
||||
|
@ -280,52 +274,110 @@ inoremap <C-V> <C-O>:call Paste("i")<CR>
|
|||
nnoremap <C-A> ggVG<CR>
|
||||
inoremap <C-A> <C-O>:call Select()<CR>
|
||||
|
||||
" fzf
|
||||
nnoremap <leader>ag :call fzf#vim#ag(expand('<cword>'), WithGitRoot())<CR>
|
||||
nnoremap <leader>tg :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>
|
||||
nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR>
|
||||
|
||||
nnoremap <Leader>cc :cclose<CR>
|
||||
nnoremap <Leader>co :copen<CR>
|
||||
|
||||
function! ToggleQuickFix()
|
||||
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
||||
copen
|
||||
else
|
||||
cclose
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! ToggleLocList()
|
||||
if empty(filter(getwininfo(), 'v:val.loclist'))
|
||||
lopen
|
||||
else
|
||||
lclose
|
||||
endif
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <F3> :call ToggleQuickFix()<CR>
|
||||
nnoremap <silent> <F4> :call ToggleLocList()<CR>
|
||||
|
||||
|
||||
|
||||
|
||||
" PLUGINS
|
||||
|
||||
|
||||
" NERDTree
|
||||
noremap <C-j> :NERDTreeToggle<CR>
|
||||
" noremap <C-B> :TagbarToggle<CR>
|
||||
inoremap <C-B> <C-O>:TagbarToggle<CR>
|
||||
|
||||
" vista
|
||||
nmap <F8> :Vista!!<CR>
|
||||
|
||||
" NERDComment
|
||||
nnoremap <silent> <F10> :call NERDComment("n", "Toggle")<cr>
|
||||
vnoremap <silent> <F10> <ESC>:call NERDComment("v", "Toggle")<cr>
|
||||
|
||||
" YCM
|
||||
nmap <C-F4> :YcmCompleter GoTo<CR>:wincmd o<CR>
|
||||
|
||||
" vim-clap
|
||||
nnoremap <leader>ag :Clap grep2 ++query=<cword><CR>
|
||||
" nnoremap <silent> <leader>tg :Clap proj_tags ++query=<cword><CR>
|
||||
nmap <C-f> :Clap files<CR>
|
||||
nmap <C-t> :Clap tags<CR>
|
||||
nmap <C-b> :Clap buffers<CR>
|
||||
|
||||
nnoremap <silent> <leader>tg :tag <C-R>=expand("<cword>")<CR><CR>
|
||||
nnoremap <silent> <leader>tp :ptag <C-R>=expand("<cword>")<CR><CR>
|
||||
nnoremap <silent> <leader>ts :ts <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
" gitgutter
|
||||
nmap <leader>ggt <Esc>:GitGutterToggle<CR>
|
||||
nmap <leader>nh <Plug>(GitGutterNextHunk)
|
||||
nmap <leader>bh <Plug>(GitGutterPrevHunk)
|
||||
|
||||
" ctrlp
|
||||
let g:ctrlp_prompt_mappings = {
|
||||
\ 'PrtBS()': ['<bs>', '<c-]>'],
|
||||
\ 'PrtDelete()': ['<del>'],
|
||||
\ 'PrtDeleteWord()': ['<c-w>'],
|
||||
\ 'PrtClear()': ['<c-u>'],
|
||||
\ 'PrtSelectMove("j")': ['<c-e>', '<down>'],
|
||||
\ 'PrtSelectMove("k")': ['<c-o>', '<up>'],
|
||||
\ 'PrtSelectMove("t")': ['<Home>', '<kHome>'],
|
||||
\ 'PrtSelectMove("b")': ['<End>', '<kEnd>'],
|
||||
\ 'PrtSelectMove("u")': ['<PageUp>', '<kPageUp>'],
|
||||
\ 'PrtSelectMove("d")': ['<PageDown>', '<kPageDown>'],
|
||||
\ 'PrtHistory(-1)': ['<c-f>'],
|
||||
\ 'PrtHistory(1)': ['<c-p>'],
|
||||
\ 'AcceptSelection("e")': ['<cr>', '<2-LeftMouse>'],
|
||||
\ 'AcceptSelection("h")': ['<c-x>', '<c-cr>', '<c-s>'],
|
||||
\ 'AcceptSelection("t")': ['<c-t>'],
|
||||
\ 'AcceptSelection("v")': ['<c-v>', '<RightMouse>'],
|
||||
\ 'ToggleFocus()': ['<s-tab>'],
|
||||
\ 'ToggleRegex()': ['<c-r>'],
|
||||
\ 'ToggleByFname()': ['<c-d>'],
|
||||
\ 'ToggleType(1)': ['<c-g>', '<c-up>'],
|
||||
\ 'ToggleType(-1)': ['<c-b>', '<c-down>'],
|
||||
\ 'PrtExpandDir()': ['<tab>'],
|
||||
\ 'PrtInsert("c")': ['<MiddleMouse>', '<insert>'],
|
||||
\ 'PrtInsert()': ['<c-\>'],
|
||||
\ 'PrtCurStart()': ['<c-a>'],
|
||||
\ 'PrtCurEnd()': ['<c-k>'],
|
||||
\ 'PrtCurLeft()': ['<c-n>', '<left>', '<c-^>'],
|
||||
\ 'PrtCurRight()': ['<c-i>', '<right>'],
|
||||
\ 'PrtClearCache()': ['<F5>'],
|
||||
\ 'PrtDeleteEnt()': ['<F7>'],
|
||||
\ 'CreateNewFile()': ['<c-y>'],
|
||||
\ 'MarkToOpen()': ['<c-z>'],
|
||||
\ 'OpenMulti()': ['<c-l>'],
|
||||
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
||||
\ }
|
||||
" tig
|
||||
" let g:tig_explorer_keymap_edit = '<C-x>'
|
||||
" let g:tig_explorer_keymap_tabedit = '<C-t>'
|
||||
" let g:tig_explorer_keymap_split = '<C-s>'
|
||||
" let g:tig_explorer_keymap_vsplit = '<C-v>'
|
||||
" nnoremap <Leader>T :TigOpenCurrentFile<CR>
|
||||
" nnoremap <Leader>t :TigOpenProjectRootDir<CR>
|
||||
" nnoremap <Leader>g :TigGrep<CR>
|
||||
" nnoremap <Leader>r :TigGrepResume<CR>
|
||||
" vnoremap <Leader>g y:TigGrep<Space><C-R>"<CR>
|
||||
" nnoremap <Leader>cg :<C-u>:TigGrep<Space><C-R><C-W><CR>
|
||||
" nnoremap <Leader>b :TigBlame<CR>
|
||||
|
||||
" ghcup
|
||||
" nnoremap <Leader>ghc :GHCup<CR>
|
||||
|
||||
" git gutter
|
||||
omap <leader>ic <Plug>(GitGutterTextObjectInnerPending)
|
||||
omap <leader>ac <Plug>(GitGutterTextObjectOuterPending)
|
||||
xmap <leader>ic <Plug>(GitGutterTextObjectInnerVisual)
|
||||
xmap <leader>ac <Plug>(GitGutterTextObjectOuterVisual)
|
||||
|
||||
" fastfold
|
||||
nmap zuz <Plug>(FastFoldUpdate)
|
||||
|
||||
"LanguageClient-neovim
|
||||
" Required for operations modifying multiple buffers like rename.
|
||||
set hidden
|
||||
nnoremap <leader>lc :call LanguageClient_contextMenu()<CR>
|
||||
" Or map each action separately
|
||||
nnoremap <silent> T :call LanguageClient#textDocument_hover()<CR>
|
||||
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||
" nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
||||
" nnoremap <leader>ld :call LanguageClient#textDocument_definition()<CR>
|
||||
" nnoremap <leader>lr :call LanguageClient#textDocument_rename()<CR>
|
||||
" nnoremap <leader>lf :call LanguageClient#textDocument_formatting()<CR>
|
||||
" nnoremap <leader>lt :call LanguageClient#textDocument_typeDefinition()<CR>
|
||||
" nnoremap <leader>lx :call LanguageClient#textDocument_references()<CR>
|
||||
" nnoremap <leader>la :call LanguageClient_workspace_applyEdit()<CR>
|
||||
" nnoremap <leader>lc :call LanguageClient#textDocument_completion()<CR>
|
||||
" nnoremap <leader>lh :call LanguageClient#textDocument_hover()<CR>
|
||||
nnoremap <leader>la :call LanguageClient#textDocument_codeAction()<CR>
|
||||
nnoremap <leader>rn :call LanguageClient#textDocument_rename()<CR>
|
||||
|
||||
|
||||
|
||||
nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR>
|
||||
|
|
|
@ -0,0 +1,241 @@
|
|||
[[plugins]]
|
||||
repo = 'mileszs/ack.vim'
|
||||
[[plugins]]
|
||||
repo = 'vim-scripts/cmdalias.vim'
|
||||
[[plugins]]
|
||||
repo = 'Raimondi/delimitMate'
|
||||
[[plugins]]
|
||||
repo = 'vim-scripts/genindent.vim'
|
||||
[[plugins]]
|
||||
repo = 'scrooloose/nerdcommenter'
|
||||
[[plugins]]
|
||||
repo = 'scrooloose/nerdtree'
|
||||
on_cmd = 'NERDTreeToggle'
|
||||
[[plugins]]
|
||||
repo = 'Xuyuanp/nerdtree-git-plugin'
|
||||
on_cmd = 'NERDTreeToggle'
|
||||
[[plugins]]
|
||||
repo = 'xolox/vim-easytags'
|
||||
[[plugins]]
|
||||
repo = 'xolox/vim-misc'
|
||||
[[plugins]]
|
||||
repo = 'nathanaelkane/vim-indent-guides'
|
||||
[[plugins]]
|
||||
repo = 'Shougo/vimproc.vim'
|
||||
build = 'make'
|
||||
[[plugins]]
|
||||
repo = 'sjbach/lusty'
|
||||
[[plugins]]
|
||||
repo = 'nixprime/cpsm'
|
||||
build = 'sh -c "PY3=ON ./install.sh"'
|
||||
[[plugins]]
|
||||
repo = 'liuchengxu/vista.vim'
|
||||
[[plugins]]
|
||||
repo = 'sbdchd/neoformat'
|
||||
[[plugins]]
|
||||
repo = 'AndrewRadev/bufferize.vim'
|
||||
[[plugins]]
|
||||
repo = 'vmchale/dhall-vim'
|
||||
[[plugins]]
|
||||
repo = 'Shougo/echodoc.vim'
|
||||
[[plugins]]
|
||||
repo = 'tpope/vim-scriptease'
|
||||
[[plugins]]
|
||||
repo = 'Konfekt/FastFold'
|
||||
[[plugins]]
|
||||
repo = 'editorconfig/editorconfig-vim'
|
||||
[[plugins]]
|
||||
repo = 'hasufell/ghcup.vim'
|
||||
[[plugins]]
|
||||
repo = 'junegunn/vim-easy-align'
|
||||
[[plugins]]
|
||||
repo = 'dominikduda/vim_current_word'
|
||||
#[[plugins]]
|
||||
# repo = 'vim-airline/vim-airline'
|
||||
#[[plugins]]
|
||||
# repo = 'vim-airline/vim-airline-themes'
|
||||
[[plugins]]
|
||||
repo = 'mkitt/tabline.vim'
|
||||
|
||||
# finder
|
||||
[[plugins]]
|
||||
repo = 'liuchengxu/vim-clap'
|
||||
build = 'make'
|
||||
|
||||
# scm
|
||||
[[plugins]]
|
||||
repo = 'tpope/vim-fugitive'
|
||||
[[plugins]]
|
||||
repo = 'tpope/vim-rhubarb'
|
||||
[[plugins]]
|
||||
repo = 'tommcdo/vim-fubitive'
|
||||
[[plugins]]
|
||||
repo = 'airblade/vim-gitgutter'
|
||||
|
||||
# local vimrc
|
||||
[[plugins]]
|
||||
repo = 'LucHermitte/lh-vim-lib'
|
||||
[[plugins]]
|
||||
repo = 'LucHermitte/local_vimrc'
|
||||
|
||||
# completion
|
||||
[[plugins]]
|
||||
repo = 'Valloric/YouCompleteMe'
|
||||
build = './install.py --clang-completer --go-completer --rust-completer --system-boost --system-libclang'
|
||||
on_ft = ['c', 'go', 'clojure']
|
||||
[[plugins]]
|
||||
repo = 'Shougo/deoplete.nvim'
|
||||
[[plugins]]
|
||||
repo = 'roxma/nvim-yarp'
|
||||
on_if = '!has("nvim")'
|
||||
[[plugins]]
|
||||
repo = 'roxma/vim-hug-neovim-rpc'
|
||||
on_if = '!has("nvim")'
|
||||
|
||||
# linting/compilation
|
||||
[[plugins]]
|
||||
repo = 'w0rp/ale'
|
||||
build = 'bash -c "cp -R ~/.vim/ale_linters ."'
|
||||
on_ft = ['sh', 'vim']
|
||||
|
||||
# LSP
|
||||
[[plugins]]
|
||||
repo = 'autozimu/LanguageClient-neovim'
|
||||
rev = 'dev'
|
||||
build = 'bash ./install.sh'
|
||||
#[[plugins]]
|
||||
#repo = 'prabirshrestha/vim-lsp'
|
||||
|
||||
# snippets
|
||||
#[[plugins]]
|
||||
#repo = 'Shougo/neosnippet.vim'
|
||||
#[[plugins]]
|
||||
#repo = 'honza/vim-snippets'
|
||||
|
||||
# multi language
|
||||
[[plugins]]
|
||||
repo = 'luochen1990/rainbow'
|
||||
on_ft = ['clojure', 'haskell', 'python']
|
||||
|
||||
# haskell
|
||||
[[plugins]]
|
||||
repo = 'neovimhaskell/haskell-vim'
|
||||
on_ft = ['haskell', 'cabal']
|
||||
[[plugins]]
|
||||
repo = 'Twinside/vim-hoogle'
|
||||
on_ft = ['haskell']
|
||||
[[plugins]]
|
||||
repo = 'alx741/vim-stylishask'
|
||||
on_ft = ['haskell']
|
||||
|
||||
[[plugins]]
|
||||
repo = 'fatih/vim-go'
|
||||
on_ft = ['go']
|
||||
hook_post_source = 'GoInstallBinaries'
|
||||
|
||||
# rust
|
||||
[[plugins]]
|
||||
repo = 'rust-lang/rust.vim'
|
||||
on_ft = ['rust']
|
||||
|
||||
# javascript
|
||||
[[plugins]]
|
||||
repo = 'pangloss/vim-javascript'
|
||||
on_ft = ['javascript']
|
||||
|
||||
# python
|
||||
[[plugins]]
|
||||
repo = 'python-mode/python-mode'
|
||||
on_ft = ['python']
|
||||
#[[plugins]]
|
||||
# repo = 'zchee/deoplete-jedi'
|
||||
# on_ft = ['python']
|
||||
#[[plugins]]
|
||||
# repo = 'davidhalter/jedi-vim'
|
||||
# on_ft = ['python']
|
||||
[[plugins]]
|
||||
repo = 'manicmaniac/coconut.vim'
|
||||
on_ft = ['python']
|
||||
[[plugins]]
|
||||
repo = 'alfredodeza/pytest.vim'
|
||||
on_ft = ['python']
|
||||
[[plugins]]
|
||||
repo = 'idanarye/vim-vebugger'
|
||||
on_ft = ['python']
|
||||
|
||||
# scala
|
||||
[[plugins]]
|
||||
repo = 'derekwyatt/vim-scala'
|
||||
on_ft = ['scala']
|
||||
|
||||
# typescript
|
||||
[[plugins]]
|
||||
repo = 'leafgarland/typescript-vim'
|
||||
on_ft = ['typescript']
|
||||
[[plugins]]
|
||||
repo = 'Quramy/tsuquyomi'
|
||||
on_ft = ['typescript']
|
||||
|
||||
|
||||
# color and beauty
|
||||
# [[plugins]]
|
||||
# repo = 'tomasiser/vim-code-dark'
|
||||
# [[plugins]]
|
||||
# repo = 'romainl/Apprentice'
|
||||
# [[plugins]]
|
||||
# repo = 'chriskempson/base16-vim'
|
||||
# [[plugins]]
|
||||
# repo = 'fneu/breezy'
|
||||
# [[plugins]]
|
||||
# repo = 'romainl/Disciple'
|
||||
# [[plugins]]
|
||||
# repo = 'wimstefan/Lightning'
|
||||
# [[plugins]]
|
||||
# repo = 'NLKNguyen/papercolor-theme'
|
||||
# [[plugins]]
|
||||
# repo = 'flazz/vim-colorschemes'
|
||||
[[plugins]]
|
||||
repo = 'altercation/vim-colors-solarized'
|
||||
# repo = 'reedes/vim-colors-pencil'
|
||||
# [[plugins]]
|
||||
# repo = 'whatyouhide/vim-gotham'
|
||||
# [[plugins]]
|
||||
# repo = 'noahfrederick/vim-hemisu'
|
||||
# [[plugins]]
|
||||
# repo = 'morhetz/gruvbox'
|
||||
|
||||
# unmanaged
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'L9'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'ScrollColor'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'bufonly'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'colorschemedegrade'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'exheres-syntax-20160116'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'fontzoom'
|
||||
on_if = '!has("nvim")'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'fuzzyfinder'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'log'
|
||||
#[[plugins]]
|
||||
#repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
#rtp = 'paredit'
|
||||
#[[plugins]]
|
||||
#repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
#rtp = 'tslime'
|
||||
[[plugins]]
|
||||
repo = 'https://gogs.hasufell.de/hasufell/vim-unmanaged.git'
|
||||
rtp = 'txtfmt'
|
182
vimrc
182
vimrc
|
@ -7,176 +7,37 @@ set shortmess+=A
|
|||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
set backspace=2 " make backspace work like most other programs
|
||||
set backspace=indent,eol,start " backspace through everything in insert mode
|
||||
set cmdheight=1
|
||||
|
||||
let g:ctrlp_map = '<c-j>'
|
||||
set wildmenu
|
||||
" set wildmode=longest,list,full
|
||||
|
||||
" vim-plug settings (Plugin declaration)
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
Plug 'mileszs/ack.vim'
|
||||
Plug 'vim-scripts/cmdalias.vim'
|
||||
Plug 'Raimondi/delimitMate'
|
||||
Plug 'vim-scripts/genindent.vim'
|
||||
" Plug 'sjl/gundo.vim'
|
||||
" Plug 'idris-hackers/idris-vim'
|
||||
"Plug 'yegappan/mru'
|
||||
Plug 'scrooloose/nerdcommenter'
|
||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||
"Plug 'vim-scripts/promela.vim'
|
||||
"Plug 'AndrewRadev/simple_bookmarks.vim'
|
||||
"Plug 'Keithbsmiley/swift.vim'
|
||||
Plug 'majutsushi/tagbar'
|
||||
"Plug 'ternjs/tern_for_vim'
|
||||
Plug 'xolox/vim-easytags'
|
||||
Plug 'xolox/vim-misc'
|
||||
Plug 'nathanaelkane/vim-indent-guides'
|
||||
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
|
||||
Plug 'sjbach/lusty'
|
||||
" Plug 'vim-airline/vim-airline'
|
||||
" Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'kien/ctrlp.vim'
|
||||
Plug 'nixprime/cpsm', { 'do': 'PY3=ON ./install.sh' }
|
||||
Plug 'junegunn/fzf', { 'do': './install --bin' }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'sbdchd/neoformat'
|
||||
Plug 'AndrewRadev/bufferize.vim'
|
||||
" Plug 'vimwiki/vimwiki'
|
||||
Plug 'vmchale/dhall-vim'
|
||||
Plug 'Shougo/echodoc.vim'
|
||||
Plug 'tpope/vim-scriptease'
|
||||
Plug 'Konfekt/FastFold'
|
||||
" Plug 'lambdalisue/vim-fullscreen'
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
|
||||
|
||||
" scm
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'tpope/vim-rhubarb'
|
||||
Plug 'tommcdo/vim-fubitive'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
" local_vimrc
|
||||
Plug 'LucHermitte/lh-vim-lib'
|
||||
Plug 'LucHermitte/local_vimrc'
|
||||
|
||||
" completion
|
||||
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --go-completer --rust-completer --system-boost --system-libclang',
|
||||
\ 'for': ['c', 'go', 'clojure'],
|
||||
\ }
|
||||
" deoplete for haskell
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins',
|
||||
\ }
|
||||
else
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
" plugins
|
||||
if &compatible
|
||||
set nocompatible " Be iMproved
|
||||
endif
|
||||
|
||||
" snippets
|
||||
"Plug 'Shougo/neosnippet.vim'
|
||||
"Plug 'honza/vim-snippets'
|
||||
" Required:
|
||||
set runtimepath+=/home/jule/.cache/dein/repos/github.com/Shougo/dein.vim
|
||||
|
||||
" LSP
|
||||
" setting this per-language breaks "let g:LanguageClient_autoStart = 1",
|
||||
" Use release branch (Recommend)
|
||||
Plug 'autozimu/LanguageClient-neovim', {
|
||||
\ 'branch': 'next',
|
||||
\ 'do': 'bash ./install.sh'
|
||||
\ }
|
||||
let s:toml = '/home/jule/.vim/plugins.toml'
|
||||
" Required:
|
||||
if dein#load_state('/home/jule/.cache/dein')
|
||||
call dein#begin('/home/jule/.cache/dein', ['/home/jule/.vim/vimrc', '/home/jule/.vim/plugins.toml'])
|
||||
|
||||
" linting/compilation
|
||||
Plug 'w0rp/ale', {
|
||||
\ 'do': 'bash -c \"cp -R ~/.vim/ale_linters .\"',
|
||||
\ 'for': ['sh', 'vim'],
|
||||
\ }
|
||||
call dein#load_toml(s:toml)
|
||||
|
||||
" haskell
|
||||
" if has("nvim")
|
||||
" Plug 'parsonsmatt/intero-neovim'
|
||||
" endif
|
||||
" Plug 'eagletmt/ghcmod-vim', { 'for': 'haskell' }
|
||||
" completion based on ghc-mod, not LSP
|
||||
" Plug 'eagletmt/neco-ghc', { 'for': 'haskell' }
|
||||
" Plug 'lukerandall/haskellmode-vim', { 'for': 'haskell' }
|
||||
Plug 'neovimhaskell/haskell-vim', { 'for': ['haskell', 'cabal']}
|
||||
" Plug 'ucsd-progsys/liquid-types.vim', { 'for': 'haskell' }
|
||||
Plug 'bitc/lushtags', {
|
||||
\ 'do': 'bash -c \"stack install\"',
|
||||
\ 'for': 'haskell',
|
||||
\ }
|
||||
" Plug 'timmytofu/vim-cabal-context', { 'for': 'haskell' }
|
||||
" Plug 'itchyny/vim-haskell-indent', { 'for': 'haskell' }
|
||||
" Plug 'dan-t/vim-hsimport', { 'for': 'haskell' }
|
||||
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' }
|
||||
" Plug 'axelf4/vim-haskell', { 'for': 'haskell' }
|
||||
" Let dein manage dein
|
||||
" Required:
|
||||
call dein#add('/home/jule/.cache/dein/repos/github.com/Shougo/dein.vim')
|
||||
|
||||
Plug 'luochen1990/rainbow', { 'for': ['clojure', 'haskell', 'python'] }
|
||||
|
||||
" go
|
||||
" Plug 'garyburd/go-explorer', { 'for': 'go' }
|
||||
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries', 'for': 'go' }
|
||||
|
||||
" rust
|
||||
" Plug 'rhysd/rust-doc.vim', { 'for': 'rust' }
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||
|
||||
" javascript
|
||||
" Plug 'moll/vim-node', { 'for': 'javascript' }
|
||||
Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
|
||||
|
||||
" python
|
||||
Plug 'icedwater/vimpython', { 'for': 'python' }
|
||||
" Plug 'zchee/deoplete-jedi', { 'for': 'python' }
|
||||
" Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
||||
Plug 'manicmaniac/coconut.vim'
|
||||
Plug 'alfredodeza/pytest.vim'
|
||||
Plug 'idanarye/vim-vebugger', { 'for': 'python' }
|
||||
|
||||
" scala
|
||||
Plug 'derekwyatt/vim-scala', { 'for': 'scala' }
|
||||
|
||||
" typescript
|
||||
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' }
|
||||
Plug 'Quramy/tsuquyomi', { 'for': 'typescript' }
|
||||
|
||||
" color and beauty
|
||||
" Plug 'tomasiser/vim-code-dark'
|
||||
" Plug 'romainl/Apprentice'
|
||||
" Plug 'chriskempson/base16-vim'
|
||||
" Plug 'fneu/breezy'
|
||||
" Plug 'romainl/Disciple'
|
||||
" Plug 'wimstefan/Lightning'
|
||||
" Plug 'NLKNguyen/papercolor-theme'
|
||||
" Plug 'flazz/vim-colorschemes'
|
||||
Plug 'altercation/vim-colors-solarized'
|
||||
" Plug 'reedes/vim-colors-pencil'
|
||||
" Plug 'whatyouhide/vim-gotham'
|
||||
if has('nvim')
|
||||
Plug 'iCyMind/NeoSolarized'
|
||||
endif
|
||||
" Plug 'noahfrederick/vim-hemisu'
|
||||
" Plug 'morhetz/gruvbox'
|
||||
|
||||
" unmanaged
|
||||
Plug '~/.vim/unmanaged-vim-plug/bufonly'
|
||||
Plug '~/.vim/unmanaged-vim-plug/colorschemedegrade'
|
||||
Plug '~/.vim/unmanaged-vim-plug/fuzzyfinder'
|
||||
Plug '~/.vim/unmanaged-vim-plug/L9'
|
||||
Plug '~/.vim/unmanaged-vim-plug/log'
|
||||
Plug '~/.vim/unmanaged-vim-plug/ScrollColor'
|
||||
Plug '~/.vim/unmanaged-vim-plug/txtfmt'
|
||||
Plug '~/.vim/unmanaged-vim-plug/exheres-syntax-20160115'
|
||||
if !has('nvim')
|
||||
Plug '~/.vim/unmanaged-vim-plug/fontzoom'
|
||||
" Required:
|
||||
call dein#end()
|
||||
call dein#save_state()
|
||||
endif
|
||||
|
||||
|
||||
" Initialize plugin system
|
||||
call plug#end()
|
||||
|
||||
|
||||
" ===== further plugin initialization and default config =====
|
||||
so ~/.vim/plugged/cmdalias.vim/plugin/cmdalias.vim
|
||||
|
@ -206,6 +67,10 @@ call CmdAlias('LS', 'LanguageClientStart')
|
|||
" global settings
|
||||
if has('gui_running')
|
||||
set guioptions -=T
|
||||
|
||||
" disable gvim tab
|
||||
set guioptions-=e
|
||||
|
||||
set winaltkeys=no
|
||||
set guiheadroom=0
|
||||
else
|
||||
|
@ -227,6 +92,7 @@ set shiftwidth=4
|
|||
set directory=~/.vimtmp
|
||||
set modeline
|
||||
set modelines=1
|
||||
set autoindent
|
||||
|
||||
let g:nickID = 'hasufell'
|
||||
|
||||
|
|
Loading…
Reference in New Issue