Created
July 5, 2022 20:01
-
-
Save TheEnquirer/9df0a54173bb999010f6cc6212aa3cd1 to your computer and use it in GitHub Desktop.
nvim copilot allow tab for both copilot suggestions and autosuggestions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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