filetype plugin indent on syntax enable let maplocalleader = "\\" let g:vimspector_enable_mappings = "VISUAL_STUDIO" let g:startify_fortune_use_unicode = 1 "lua require("plugins") lua require("init") lua require("keymap") " lua require("coc") " set number relativenumber set tabstop=4 set shiftwidth=4 set noautochdir set nowrap set list listchars=tab:▎\ ,trail:·,precedes:<,extends:> set foldmethod=indent set foldlevel=99 set nofoldenable au ColorSchemePre kanagawa highlight! link RainbowDelimiterRed MiniIconsRed au ColorSchemePre kanagawa highlight! link RainbowDelimiterYellow MiniIconsYellow au ColorSchemePre kanagawa highlight! link RainbowDelimiterBlue MiniIconsBlue au ColorSchemePre kanagawa highlight! link RainbowDelimiterOrange MiniIconsOrange au ColorSchemePre kanagawa highlight! link RainbowDelimiterGreen MiniIconsGreen au ColorSchemePre kanagawa highlight! link RainbowDelimiterViolet MiniIconsPurple au ColorSchemePre kanagawa highlight! link RainbowDelimiterCyan MiniIconsCyan au ColorScheme kanagawa highlight! LineNr guifg=#fcc35a "colorscheme tokyonight-storm colorscheme kanagawa let g:blamer_enabled = 1 let g:startify_change_to_dir = 1 let g:startify_change_to_vcs_root = 1 let g:startify_bookmarks = map(filter(globpath('/home/robert/repos', "*", 0, 1), 'isdirectory(v:val)'), {idx,val -> { "abcdefgmnopqrstuvwxyz"[idx]: '/home/robert/' .. join(split(val, '/')[2:-1], '/') .. '/'}}) let g:ale_fixers = { \ 'c': ['clang-format'] \} " inoremap coc#pum#visible() ? coc#pum#prev(1) : "" " inoremap coc#pum#visible() ? coc#pum#next(1) : "" "Fix escape sending user to normal mode in fzf buffers autocmd FileType fzf tnoremap " inoremap " \ coc#pum#visible() ? coc#_select_confirm() : " \ coc#expandableOrJumpable() ? "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : " \ CheckBackspace() ? "\" : " \ "\" function! CheckBackspace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction " let g:coc_snippet_next = '' "highlight LineNr guifg=#ff57d8 set noexpandtab if has('python') map :pyf /usr/share/clang/clang-format.py imap :pyf /usr/share/clang/clang-format.py elseif has('python3') map :py3f /usr/share/clang/clang-format.py imap :py3f /usr/share/clang/clang-format.py endif