aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-03-26 21:03:56 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-03-26 21:03:56 +0300
commitd7d377d1c6fd5acb3789da99f15878e284f7ff13 (patch)
treef1fd9b33912bb4c727ef60e7c67a4f0010fc5e54 /dotfiles
parent26c5e5736d5c345f32def21e71d92a974b4899f3 (diff)
downloadvimrice-d7d377d1c6fd5acb3789da99f15878e284f7ff13.tar.gz
vimrice-d7d377d1c6fd5acb3789da99f15878e284f7ff13.zip
Fix broken config for old neovim
Don't require lspfuzzy on neovim versions that do not support LSP.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/nvim/init.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 9469af9..4a27116 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -210,7 +210,7 @@ call plug#end()
map <leader>к :NERDTreeToggle<CR>
" FZF
- let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-\']
+ let g:fzf_preview_window = ['hidden,right,50%,<70(hidden,up,40%)', 'ctrl-\']
map <leader>f :Files<CR>
map <leader>а :Files<CR>
map <leader>F :Rg
@@ -240,6 +240,7 @@ call plug#end()
lua require('lspconfig').pylsp.setup{}
lua require('lspconfig').rls.setup{}
lua require('lspconfig').quick_lint_js.setup{}
+ lua require('lspfuzzy').setup{}
endif
" LSP keybinds
@@ -256,7 +257,6 @@ call plug#end()
nmap <silent> [g <cmd>lua vim.diagnostic.goto_prev()<CR>
" LSP FZF
- lua require('lspfuzzy').setup{}
" File format preferences
" MFing neovim overrding my omnifunc with whatever ccomplete is