Update neovim config

This commit is contained in:
Wiktor Zykubek 2020-05-29 18:45:36 +02:00
parent 57abc0d235
commit e4e7e2301b
2 changed files with 18 additions and 14 deletions

View File

@ -73,3 +73,6 @@ smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
imap <C-k> <Plug>(neosnippet_expand_or_jump) imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump) smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target) xmap <C-k> <Plug>(neosnippet_expand_target)
" substitute
nnoremap S :%s//g<LEFT><LEFT>

View File

@ -48,6 +48,7 @@ call plug#begin('~/.config/nvim/bundle')
Plug 'reedes/vim-pencil' Plug 'reedes/vim-pencil'
Plug 'christoomey/vim-tmux-navigator' Plug 'christoomey/vim-tmux-navigator'
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
Plug 'chaoren/vim-wordmotion'
" git " git
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
@ -69,8 +70,8 @@ let g:lsp_signs_warning = {'text': ''}
let g:lsp_signs_hint = {'text': ''} " icons require GUI let g:lsp_signs_hint = {'text': ''} " icons require GUI
let g:ale_linters = { let g:ale_linters = {
\ 'c': ['ccls', 'clang'], \ 'c': ['ccls'],
\ 'cpp': ['ccls', 'clang'], \ 'cpp': ['ccls'],
\ 'javascript': ['eslint'], \ 'javascript': ['eslint'],
\ 'php': ['php'], \ 'php': ['php'],
\ 'python': ['flake8'], \ 'python': ['flake8'],
@ -160,18 +161,18 @@ if (executable('typescript-language-server'))
endif endif
" for C/C++ language server " for C/C++ language server
if (executable('ccls')) " if (executable('ccls'))
augroup LspCpp " augroup LspCpp
autocmd! " autocmd!
autocmd User lsp_setup call lsp#register_server({ " autocmd User lsp_setup call lsp#register_server({
\ 'name': 'ccls', " \ 'name': 'ccls',
\ 'cmd': {server_info->['ccls']}, " \ 'cmd': {server_info->['ccls']},
\ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, " \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))},
\ 'initialization_options': {}, " \ 'initialization_options': {},
\ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], " \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'],
\ }) " \ })
augroup END " augroup END
endif " endif
" for Go language server " for Go language server
if executable('gopls') if executable('gopls')