Skip to content

Instantly share code, notes, and snippets.

@h3ssan
Created April 18, 2025 21:32
Show Gist options
  • Save h3ssan/86e8e2967bf2a77e9c1771c7c1c99820 to your computer and use it in GitHub Desktop.
Save h3ssan/86e8e2967bf2a77e9c1771c7c1c99820 to your computer and use it in GitHub Desktop.
Enable GitHub Copilot in NeoVim/NvChad

The Problem

Neovim/NvChad is not recognizing github copilot at all.

Solution

Add github/copilot.vim plugin to plugins list, in ~/.config/nvim/lua/plugins/init.lua

return {
    -- ...
  {
    "github/copilot.vim",
    lazy = false,
    config = function() -- Mapping tab is already used in NvChad
      vim.g.copilot_no_tab_map = true; -- Disable tab mapping
      vim.g.copilot_assume_mapped = true; -- Assume that the mapping is already done
    end
  }
}

Thanks

  1. Alexander Schaaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment