erikpoliveira-byte

Results 4 comments of erikpoliveira-byte

if True: for i in range(5): print(i) else: print('no break!') else:|

Typically, I don't dedent past the point where the else/elif/except/finally keyword could be placed and still be syntactically correct, but in cases like these where we've already "consumed" the for's...

function! GetFileRepoRoot() let l:file_path = expand('%:p') let l:file_dir = expand('%:p:h') if empty(l:file_path) || !filereadable(l:file_path) return endif let l:git_root = system('git -C ' . shellescape(l:file_dir) . ' rev-parse --show-toplevel') if v:shell_error...

let g:copilot_filetypes = { \ 'gitcommit': v:true, \}