let s:root_dir = expand(':h:h') function! patto#init() abort if exists('g:lsp_loaded') " vim-lsp let l:script = s:root_dir . '/settings/vimlsp.vim' exe 'source ' l:script doautocmd User lsp_setup endif endfunction