361 endif |
361 endif |
362 |
362 |
363 augroup vim-lsp |
363 augroup vim-lsp |
364 autocmd! |
364 autocmd! |
365 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() |
365 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() |
|
366 autocmd User lsp_float_opened call s:on_lsp_float_opened() |
|
367 autocmd FileType markdown.lsp-hover nmap <silent><buffer>q :pclose<CR> |
|
368 autocmd FileType markdown.lsp-hover exe "%s/](/]\r(/g" |
366 augroup END |
369 augroup END |
|
370 |
|
371 func! s:on_lsp_float_opened() abort |
|
372 call win_execute(popup_list()[0], 'setl sbr=NONE nobri linebreak') |
|
373 endfunc |
|
374 |
|
375 hi lspReference ctermfg=217 guifg=#f0a0c0 |
367 |
376 |
368 let g:lsp_settings = { |
377 let g:lsp_settings = { |
369 \ 'gopls': { |
378 \ 'gopls': { |
370 \ 'workspace_config': { 'gopls': { 'gofumpt': v:true } }, |
379 \ 'workspace_config': { 'gopls': { 'gofumpt': v:true } }, |
371 \ }, |
380 \ }, |