.vimrc

changeset 925
b5875260619a
parent 924
0726a063b1d2
child 926
9871d921c95d
equal deleted inserted replaced
924:0726a063b1d2 925:b5875260619a
180 endif 180 endif
181 181
182 set linebreak 182 set linebreak
183 let &showbreak = "» " 183 let &showbreak = "» "
184 set breakindent 184 set breakindent
185 set breakindentopt+=sbr 185 set breakindentopt=min:66,shift:2
186 186
187 set virtualedit=block 187 set virtualedit=block
188 188
189 set autoindent 189 set autoindent
190 set expandtab 190 set expandtab
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 \ },

mercurial