Tweak briopt and lsp displays

Thu, 08 Jul 2021 19:28:52 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 08 Jul 2021 19:28:52 -0500
changeset 925
b5875260619a
parent 924
0726a063b1d2
child 926
9871d921c95d

Tweak briopt and lsp displays

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -182,7 +182,7 @@ endif
 set linebreak
 let &showbreak = "ยป "
 set breakindent
-set breakindentopt+=sbr
+set breakindentopt=min:66,shift:2
 
 set virtualedit=block
 
@@ -363,8 +363,17 @@ endif
 augroup vim-lsp
   autocmd!
   autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
+  autocmd User lsp_float_opened call s:on_lsp_float_opened()
+  autocmd FileType markdown.lsp-hover nmap <silent><buffer>q :pclose<CR>
+  autocmd FileType markdown.lsp-hover exe "%s/](/]\r(/g"
 augroup END
 
+func! s:on_lsp_float_opened() abort
+  call win_execute(popup_list()[0], 'setl sbr=NONE nobri linebreak')
+endfunc
+
+hi lspReference ctermfg=217 guifg=#f0a0c0
+
 let g:lsp_settings = {
   \ 'gopls': {
     \ 'workspace_config': { 'gopls': { 'gofumpt': v:true } },

mercurial