fix(vim): fix some stuff
This commit is contained in:
parent
f9d2fc0778
commit
e43e0be9de
26
.vimrc
26
.vimrc
|
@ -52,7 +52,7 @@ set wildmenu
|
||||||
set wildoptions=fuzzy,pum
|
set wildoptions=fuzzy,pum
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
set signcolumn=yes:2
|
set signcolumn=yes:2
|
||||||
set cmdheight=0
|
" set cmdheight=0
|
||||||
set pumblend=40
|
set pumblend=40
|
||||||
set winblend=40
|
set winblend=40
|
||||||
endif
|
endif
|
||||||
|
@ -154,7 +154,7 @@ let g:lsp_document_highlight_delay = 0
|
||||||
let g:lsp_preview_max_width = 50
|
let g:lsp_preview_max_width = 50
|
||||||
let g:lsp_diagnostics_float_cursor = 1
|
let g:lsp_diagnostics_float_cursor = 1
|
||||||
let g:lsp_diagnostics_float_delay = 500
|
let g:lsp_diagnostics_float_delay = 500
|
||||||
let g:lsp_preview_autoclose = 0
|
let g:lsp_preview_autoclose = 1
|
||||||
let g:lsp_float_max_width = 50
|
let g:lsp_float_max_width = 50
|
||||||
let g:lsp_inlay_hints_enabled = 1
|
let g:lsp_inlay_hints_enabled = 1
|
||||||
let g:lsp_diagnostics_virtual_text_padding_left = 12
|
let g:lsp_diagnostics_virtual_text_padding_left = 12
|
||||||
|
@ -189,7 +189,11 @@ endfunction
|
||||||
let g:asyncomplete_preprocessor = [function('s:truncate_labels')]
|
let g:asyncomplete_preprocessor = [function('s:truncate_labels')]
|
||||||
|
|
||||||
" Personal keybindings
|
" Personal keybindings
|
||||||
tnoremap <Esc> <C-w>N
|
if !has('nvim')
|
||||||
|
tnoremap <Esc> <C-w>N
|
||||||
|
else
|
||||||
|
tnoremap <ESC> <C-\><C-n>
|
||||||
|
endif
|
||||||
nnoremap <leader>w <Plug>(easymotion-bd-w)
|
nnoremap <leader>w <Plug>(easymotion-bd-w)
|
||||||
vnoremap <leader>w <Plug>(easymotion-bd-w)
|
vnoremap <leader>w <Plug>(easymotion-bd-w)
|
||||||
nnoremap <leader>o <Cmd>Files<CR>
|
nnoremap <leader>o <Cmd>Files<CR>
|
||||||
|
@ -217,6 +221,7 @@ if has('nvim')
|
||||||
else
|
else
|
||||||
nnoremap <leader>` <Cmd>split<CR><Cmd>term ++curwin zsh<CR>
|
nnoremap <leader>` <Cmd>split<CR><Cmd>term ++curwin zsh<CR>
|
||||||
endif
|
endif
|
||||||
|
nnoremap <leader>x <Cmd>%s/\s\+$//e<CR>
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Bclose
|
" Bclose
|
||||||
|
@ -310,5 +315,20 @@ let g:auto_save = 0
|
||||||
" recover cursor shape
|
" recover cursor shape
|
||||||
autocmd VimLeave * silent !echo -ne "\e[6 q"
|
autocmd VimLeave * silent !echo -ne "\e[6 q"
|
||||||
|
|
||||||
|
" fix split line color
|
||||||
|
set fillchars+=vert:\│
|
||||||
|
highlight VertSplit cterm=NONE
|
||||||
|
highlight VertSplit guifg=#585273
|
||||||
|
|
||||||
|
" airline styling
|
||||||
|
" ref: https://github.com/vim-airline/vim-airline/issues/323#issuecomment-27336312
|
||||||
|
let g:airline_left_sep = ''
|
||||||
|
let g:airline_left_alt_sep = ''
|
||||||
|
let g:airline_right_sep = ''
|
||||||
|
let g:airline_right_alt_sep = ''
|
||||||
|
|
||||||
|
" fix c++ comment style in Neovim
|
||||||
|
autocmd FileType cpp setl commentstring=//\ %s
|
||||||
|
|
||||||
" Why?!
|
" Why?!
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
Loading…
Reference in New Issue