Update init.vim

This commit is contained in:
Oshgnacknak 2021-10-02 13:37:45 +02:00
parent cc124f93c6
commit 71b022d826
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -1,4 +1,6 @@
call plug#begin()
Plug 'natebosch/vim-lsc'
Plug 'preservim/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'vim-syntastic/syntastic'
Plug 'junegunn/fzf.vim'
@ -7,14 +9,13 @@ Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" Plug 'deoplete-plugins/deoplete-clang'
" Plug 'deoplete-plugins/deoplete-jedi'
" Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install tern'}
" Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install tern'}
Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
Plug 'terryma/vim-multiple-cursors'
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
Plug 'luochen1990/rainbow'
" Plug 'wlangstroth/vim-racket'
Plug 'AndrewRadev/id3.vim'
call plug#end()
let g:deoplete#enable_at_startup = 1
@ -32,9 +33,39 @@ func! Multiple_cursors_after()
endif
endfunc
set completeopt-=preview
function! s:insert_gates()
let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g")
execute "normal! i#ifndef " . gatename
execute "normal! o#define " . gatename . " "
execute "normal! Go#endif /* " . gatename . " */"
normal! kk
endfunction
let g:rainbow_active = 1
let g:syntastic_enable_racket_racket_checker = 1
let g:syntastic_python_checkers = ['python']
let g:lsc_auto_map = {
\ 'GoToDefinition': '<C-]>',
\ 'GoToDefinitionSplit': ['<C-W>]', '<C-W><C-]>'],
\ 'FindReferences': 'gr',
\ 'NextReference': ',',
\ 'PreviousReference': ';',
\ 'FindImplementations': 'gI',
\ 'FindCodeActions': 'ga',
\ 'Rename': 'gR',
\ 'ShowHover': v:true,
\ 'DocumentSymbol': 'go',
\ 'WorkspaceSymbol': 'gS',
\ 'SignatureHelp': 'gm',
\ 'Completion': 'completefunc',
\}
let g:lsc_server_commands = {
\ 'python': 'pyls',
\ 'scala': 'metals',
\ 'javascript': 'typescript-language-server --stdio'
\}
set mouse=a
set splitbelow
@ -49,6 +80,7 @@ set smarttab
autocmd FileType gitcommit setlocal spell spelllang=en
autocmd TermOpen,TermEnter * setlocal nonumber norelativenumber nospell nohlsearch
autocmd Filetype tex,markdown,mail setlocal linebreak spell spelllang=de
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
set spelllang=de,en
set complete+=kspell
@ -58,6 +90,6 @@ nnoremap <F3> :! ./%<cr>
nnoremap <A-f> :Files<cr>
nnoremap <A-t> :terminal<cr>
nnoremap <A-b> :Buffers<cr>
nnoremap <A-g> :Gstatus<cr>
nnoremap <A-g> :Git<cr>
tnoremap <C-w> <C-\><C-n><C-w>