From c4b8fe516161947a610c7e7743e46c4e69e57add Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?=
 <yps@yaroslavps.com>
Date: Tue, 21 Dec 2021 00:16:31 +0300
Subject: Chage redraw time

Because otherwise inccommand sometimes lags.
---
 dotfiles/.config/nvim/init.vim | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'dotfiles/.config/nvim')

diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 0fa9bb7..a58a0e1 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -38,12 +38,13 @@ call plug#end()
 	set omnifunc=syntaxcomplete#Complete
 	set guicursor=n-v-sm:block,i-ci-c-ve:ver25,r-cr-o:block
 	set cursorline
-	set number
+	set redrawtime=1000
 	set relativenumber
 	set scrolloff=5
 	set colorcolumn=+1
 	set textwidth=80
 	set mouse=a
+	set number
 
 " Colors
 	colorscheme ultramar
@@ -218,9 +219,10 @@ call plug#end()
 
 " LSP
 	let g:LanguageClient_serverCommands = {
-  	  \ 'c': ['/usr/bin/clangd'],
+  	  \ 'c': ['/usr/bin/clangd', '--cross-file-rename'],
+  	  \ 'ch': ['/usr/bin/clangd', '--cross-file-rename'],
   	  \ 'go': ['/usr/bin/gopls'],
-  	  \ 'cpp': ['/usr/bin/clangd'],
+  	  \ 'cpp': ['/usr/bin/clangd', '--cross-file-rename'],
   	  \ 'python': ['/usr/bin/pyls'],
   	  \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls'],
   	  \ 'javascript': ['/usr/bin/typescript-language-server', '--stdio'],
-- 
cgit v1.2.3