Skip to content

Instantly share code, notes, and snippets.

@TheEnquirer
Created July 5, 2022 20:01
Show Gist options
  • Save TheEnquirer/9df0a54173bb999010f6cc6212aa3cd1 to your computer and use it in GitHub Desktop.
Save TheEnquirer/9df0a54173bb999010f6cc6212aa3cd1 to your computer and use it in GitHub Desktop.
nvim copilot allow tab for both copilot suggestions and autosuggestions
" conditionally bind tab based on whether or not autosugestions are available
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : copilot#Accept("\<Tab>")
" reset the copilot tab map
let g:copilot_no_tab_map = v:true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment