Skip to content

How to do the very basics. #99

Answered by MunifTanjim
Aur0nd asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, so here's a more complete guide:

  1. Install zbirenbaum/copilot.lua with your plugin manager of choice (vim-plug or packer.nvim or lazy.nvim or something else).

  2. Setup copilot.lua.

require("copilot").setup({
  panel = {
    auto_refresh = false,
    keymap = {
      accept = "<CR>",
      jump_prev = "[[",
      jump_next = "]]",
      refresh = "gr",
      open = "<M-CR>",
    },
  },
  suggestion = {
    auto_trigger = true,
    keymap = {
      accept = "<M-l>",
      prev = "<M-[>",
      next = "<M-]>",
      dismiss = "<C-]>",
    },
  },
})
  1. Restart Neovim.

  2. Run :Copilot auth and complete the authentication process (if it's not done already).

  3. Run :Copilot status to make …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MunifTanjim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #98 on December 23, 2022 11:04.