" lightline config let g:lightline = { \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" } \ } " set nowrap, line numbers, hightlight search set nowrap set nu set hlsearch " set fold settings set foldmethod=indent set foldnestmax=10 set foldlevel=2 set nofoldenable " synchronize with system clipboard set clipboard=unnamed " remap shift-enter to fire up the sidebar " the same remap as above - may be necessary in some distros nnoremap :leftabove 25vs:e . " View *.hex files in hex au BufReadPost *.hex silent %!xxd " Always show the signcolumn, otherwise it would shift the text each time " diagnostics appear/become resolved. set signcolumn=yes " Use to trigger completion. inoremap coc#refresh() " Use tab for trigger completion with characters ahead and navigate. " NOTE: There's always complete item selected by default, you may want to enable " no select by `"suggest.noselect": true` in your configuration file. " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by " other plugin before putting this into your config. inoremap \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : \ coc#refresh() inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" " Make to accept selected completion item or notify coc.nvim to format " u breaks current undo, please make your own choice. inoremap coc#pum#visible() ? coc#pum#confirm() \: "\u\\=coc#on_enter()\" function! CheckBackspace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction