From d7d377d1c6fd5acb3789da99f15878e284f7ff13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 26 Mar 2023 21:03:56 +0300 Subject: Fix broken config for old neovim Don't require lspfuzzy on neovim versions that do not support LSP. --- dotfiles/.config/nvim/init.vim | 4 ++-- 1 file 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 к :NERDTreeToggle " 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 f :Files map а :Files map 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 [g lua vim.diagnostic.goto_prev() " LSP FZF - lua require('lspfuzzy').setup{} " File format preferences " MFing neovim overrding my omnifunc with whatever ccomplete is -- cgit v1.2.3