set termguicolors set nowrap set nu rnu set list set listchars=tab:┆\ ,space:·,nbsp:␣ set tabstop=2 set shiftwidth=2 set noexpandtab nmap :w imap :w noremap (col('.') == matchend(getline('.'), '^\s*')+1 ? '0' : '^') imap vnoremap > >gv vnoremap < %i %i', s:i, s:i) let s:i += 1 endwhile set clipboard=unnamedplus colorscheme tokyonight-night if exists(':GuiRenderLigatures') GuiRenderLigatures 1 endif if exists(':GuiFont') GuiFont FiraCode\ Nerd\ Font endif if exists(':NERDTreeToggle') map :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif endif if exists(':BufferGoto') let s:i = 1 while s:i < 10 execute printf('nmap %i :BufferGoto %i', s:i, s:i) let s:i += 1 endwhile nmap :BufferNext nmap :BufferPrevious nmap :BufferClose endif if exists(':DetectIndent') autocmd BufRead * DetectIndent endif if exists(':CocInfo') inoremap coc#refresh() inoremap \ coc#pum#visible() ? coc#pum#confirm() : "\" nmap ld (coc-definition) nmap lt (coc-type-definition) nmap li (coc-implementation) nmap lr (coc-references) endif if exists(':LeaderGuide') nnoremap :LeaderGuide '\' nnoremap :LeaderGuide '' let g:smap = get(g:, 'smap', {}) " let g:smap[''] = get(g:smap, '', {}) " let g:smap[''].l = 'language' let g:smap.l = {'name' : 'language'} call leaderGuide#register_prefix_descriptions("", "g:smap") endif