From ffbc50184222a22e6f51c4254743ef28b450da7e Mon Sep 17 00:00:00 2001 From: samedamci Date: Tue, 2 Jun 2020 20:29:00 +0200 Subject: [PATCH] Update nvim config --- .config/nvim/bindings.vim | 1 - .config/nvim/plugins.vim | 44 ++++++++++++--------------------------- 2 files changed, 13 insertions(+), 32 deletions(-) diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index c7e8bc0..d45ec61 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -10,7 +10,6 @@ let g:move_key_modifier = 'A' "~~~~~~~~~~~~~~~~~ " fzf nmap f :Files -nmap fg :GFiles "~~~~~~~~~ " Linters diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index a4087aa..0233111 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -10,7 +10,7 @@ endif call plug#begin('~/.config/nvim/bundle') - " files management + " fzf Plug '~/.fzf' Plug 'junegunn/fzf.vim' @@ -113,8 +113,18 @@ let g:fzf_colors = \ 'spinner': ['fg', 'Label'], \ 'header': ['fg', 'Comment'] } -let g:fzf_layout = { 'down': '~50%' } -let g:fzf_preview_window = 'right:60%' +let g:fzf_layout = { +\ 'up':'~90%', +\ 'window': +\ { +\ 'width': 0.7, +\ 'height': 0.7, +\ 'yoffset':0.5, +\ 'xoffset': 0.5, +\ 'border': 'sharp' +\ } +\} +let g:fzf_preview_window = 'right:55%' " gitgutter set updatetime=1000 @@ -127,8 +137,6 @@ autocmd FileType html,css EmmetInstall " deoplete let g:deoplete#enable_at_startup = 1 -" let deoplete#tag#cache_limit_size = 5000000 -" autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif let g:deoplete#enable_ignore_case = 1 set completeopt-=preview @@ -136,18 +144,6 @@ call deoplete#custom#source('ultisnips', 'rank', 1000) call deoplete#custom#source('zsh', 'filetypes', ['sh', 'zsh']) call deoplete#custom#option('smart_case', v:false) -" For python language server -" if (executable('pyls')) -" augroup LspPython -" autocmd! -" autocmd User lsp_setup call lsp#register_server({ -" \ 'name': 'pyls', -" \ 'cmd': {server_info->['pyls']}, -" \ 'whitelist': ['python'] -" \ }) -" augroup END -" endif - " for JS language server if (executable('typescript-language-server')) augroup LspJavaScript @@ -160,20 +156,6 @@ if (executable('typescript-language-server')) augroup END 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 - " for Go language server if executable('gopls') au User lsp_setup call lsp#register_server({