Before installing HDD
This commit is contained in:
parent
6e701541ca
commit
4a8628231c
8 changed files with 151 additions and 30 deletions
|
@ -68,8 +68,8 @@ nmap gs :FzfSnippets<CR>
|
|||
|
||||
""" SUPERTAB """
|
||||
|
||||
" let g:SuperTabDefaultCompletionType = "<c-n>" " Go down when completing
|
||||
" let g:SuperTabContextDefaultCompletionType = "<c-n>"
|
||||
let g:SuperTabDefaultCompletionType = "<c-n>" " Go down when completing
|
||||
let g:SuperTabContextDefaultCompletionType = "<c-n>"
|
||||
|
||||
""" LanguageTool """
|
||||
|
||||
|
@ -82,29 +82,84 @@ let g:pandoc#syntax#conceal#use = 0
|
|||
|
||||
""" LanguageClient-neovim """
|
||||
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'python': ['pyls'],
|
||||
\ 'sh': ['bash-language-server', 'start'],
|
||||
\ }
|
||||
let g:LanguageClient_loggingFile = expand('~/.cache/vim/LanguageClient.log')
|
||||
" let g:LanguageClient_serverCommands = {
|
||||
" \ 'python': ['pyls'],
|
||||
" \ 'sh': ['bash-language-server', 'start'],
|
||||
" \ }
|
||||
" let g:LanguageClient_loggingFile = expand('~/.cache/vim/LanguageClient.log')
|
||||
"
|
||||
"
|
||||
" function LC_maps()
|
||||
" if has_key(g:LanguageClient_serverCommands, &filetype)
|
||||
" nnoremap <buffer> <silent> K :call LanguageClient#textDocument_hover()<cr>
|
||||
" nnoremap <buffer> <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||
" nnoremap <buffer> <silent> gD :call LanguageClient#textDocument_references()<CR>
|
||||
" nnoremap <buffer> <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
||||
" nnoremap <buffer> <silent> <F3> :call LanguageClient#textDocument_formatting()<CR>
|
||||
" set completefunc=LanguageClient#complete
|
||||
" set omnifunc=LanguageClient#complete
|
||||
" endif
|
||||
" endfunction
|
||||
" autocmd FileType * call LC_maps()
|
||||
|
||||
""" vim-lsp """
|
||||
|
||||
function LC_maps()
|
||||
if has_key(g:LanguageClient_serverCommands, &filetype)
|
||||
nnoremap <buffer> <silent> K :call LanguageClient#textDocument_hover()<cr>
|
||||
nnoremap <buffer> <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||
nnoremap <buffer> <silent> gd :call LanguageClient#textDocument_references()<CR>
|
||||
nnoremap <buffer> <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
||||
nnoremap <buffer> <silent> <F3> :call LanguageClient#textDocument_formatting()<CR>
|
||||
set completefunc=LanguageClient#complete
|
||||
set omnifunc=LanguageClient#complete
|
||||
endif
|
||||
endfunction
|
||||
autocmd FileType * call LC_maps()
|
||||
" (providers are automatically detected thanks to vim-lsp-settings.
|
||||
" You can even install some locally using :LspInstallServer)
|
||||
|
||||
nnoremap gd :LspDefinition<CR>
|
||||
nnoremap gD :LspDeclaration<CR>
|
||||
nnoremap <F3> :LspDocumentFormat<CR>
|
||||
vnoremap <F3> :LspDocumentRangeFormat<CR>
|
||||
nnoremap gE :LspNextDiagnostic<CR>
|
||||
nnoremap ge :LspNextError<CR>
|
||||
nnoremap <F2> :LspRename<CR>
|
||||
|
||||
let g:lsp_signs_enabled = 1
|
||||
let g:lsp_diagnostics_echo_cursor = 1
|
||||
|
||||
let g:lsp_signs_error = {'text': '✗'}
|
||||
let g:lsp_signs_warning = {'text': '‼'}
|
||||
let g:lsp_signs_information = {'text': 'ℹ'}
|
||||
let g:lsp_signs_hint = {'text': '?'}
|
||||
|
||||
let g:lsp_highlight_references_enabled = 1
|
||||
|
||||
""" deoplete """
|
||||
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ deoplete#manual_complete()
|
||||
function! s:check_back_space() abort "{{{
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~ '\s'
|
||||
endfunction"}}}
|
||||
|
||||
" suggested by ssemshi to make it not too slow
|
||||
" let g:deoplete#auto_complete_delay = 100
|
||||
call deoplete#custom#option({
|
||||
\ 'auto_complete_delay': 100,
|
||||
\ 'smart_case': v:true,
|
||||
\ })
|
||||
|
||||
""" asyncomplete """
|
||||
|
||||
" let g:asyncomplete_auto_popup = 1
|
||||
" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
" inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
|
||||
" imap <c-space> <Plug>(asyncomplete_force_refresh)
|
||||
|
||||
""" asyncomplete-file
|
||||
|
||||
" au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
|
||||
" \ 'name': 'file',
|
||||
" \ 'whitelist': ['*'],
|
||||
" \ 'priority': 10,
|
||||
" \ 'completor': function('asyncomplete#sources#file#completor')
|
||||
" \ }))
|
||||
|
||||
""" vista.vim """
|
||||
|
||||
|
|
|
@ -44,10 +44,8 @@ Plug 'deris/vim-shot-f'
|
|||
" Auto-highlight one character per word for quick f/F movement
|
||||
Plug 'unblevable/quick-scope'
|
||||
|
||||
"
|
||||
" Plug 'maralla/completor.vim'
|
||||
"
|
||||
" Auto-completion
|
||||
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
else
|
||||
|
@ -55,7 +53,9 @@ else
|
|||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
endif
|
||||
" Plug 'zchee/deoplete-jedi'
|
||||
|
||||
" Plug 'prabirshrestha/asyncomplete.vim'
|
||||
" Plug 'prabirshrestha/asyncomplete-file.vim'
|
||||
|
||||
" Plug 'python-mode/python-mode', { 'branch': 'develop' }
|
||||
Plug 'junegunn/fzf', {'do': './install --bin'}
|
||||
|
@ -67,11 +67,16 @@ Plug 'vim-pandoc/vim-pandoc'
|
|||
Plug 'vim-pandoc/vim-pandoc-syntax'
|
||||
Plug 'idanarye/vim-vebugger'
|
||||
|
||||
" Language Server Procotol client
|
||||
Plug 'autozimu/LanguageClient-neovim', {
|
||||
\ 'branch': 'next',
|
||||
\ 'do': 'bash install.sh',
|
||||
\ }
|
||||
" " Language Server Procotol client
|
||||
|
||||
" Plug 'autozimu/LanguageClient-neovim', {
|
||||
" \ 'branch': 'next',
|
||||
" \ 'do': 'bash install.sh',
|
||||
" \ }
|
||||
|
||||
Plug 'prabirshrestha/async.vim'
|
||||
Plug 'prabirshrestha/vim-lsp'
|
||||
Plug 'mattn/vim-lsp-settings'
|
||||
|
||||
|
||||
" Automatically closes brackets, quotes and parentheses
|
||||
|
@ -86,5 +91,8 @@ Plug 'autozimu/LanguageClient-neovim', {
|
|||
" Tag bar
|
||||
Plug 'liuchengxu/vista.vim'
|
||||
|
||||
" Semantic highlighting for Python
|
||||
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ filetype plugin on
|
|||
filetype indent on
|
||||
|
||||
set wildmode=longest,list
|
||||
set wildmenu
|
||||
set showcmd
|
||||
|
||||
" Put plugins and dictionaries in this dir (also on Windows)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue