From e4e7e2301b467e70e5eda51aeb7dcda4420924e8 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Fri, 29 May 2020 18:45:36 +0200 Subject: [PATCH] Update neovim config --- .config/nvim/bindings.vim | 3 +++ .config/nvim/plugins.vim | 29 +++++++++++++++-------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index 77f8d69..c7e8bc0 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -73,3 +73,6 @@ smap neosnippet#expandable_or_jumpable() ? imap (neosnippet_expand_or_jump) smap (neosnippet_expand_or_jump) xmap (neosnippet_expand_target) + +" substitute +nnoremap S :%s//g diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index 6ba4bf9..a4087aa 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -48,6 +48,7 @@ call plug#begin('~/.config/nvim/bundle') Plug 'reedes/vim-pencil' Plug 'christoomey/vim-tmux-navigator' Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } + Plug 'chaoren/vim-wordmotion' " git 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:ale_linters = { -\ 'c': ['ccls', 'clang'], -\ 'cpp': ['ccls', 'clang'], +\ 'c': ['ccls'], +\ 'cpp': ['ccls'], \ 'javascript': ['eslint'], \ 'php': ['php'], \ 'python': ['flake8'], @@ -160,18 +161,18 @@ if (executable('typescript-language-server')) endif " for C/C++ language server -if (executable('ccls')) - augroup LspCpp - autocmd! - autocmd User lsp_setup call lsp#register_server({ - \ 'name': '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'))}, - \ 'initialization_options': {}, - \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], - \ }) - augroup END -endif +" if (executable('ccls')) +" augroup LspCpp +" autocmd! +" autocmd User lsp_setup call lsp#register_server({ +" \ 'name': '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'))}, +" \ 'initialization_options': {}, +" \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], +" \ }) +" augroup END +" endif " for Go language server if executable('gopls')