Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.

Files

Latest commit

a74afb2 · Aug 31, 2024

History

History
41 lines (38 loc) · 778 Bytes

README.md

File metadata and controls

41 lines (38 loc) · 778 Bytes

Please use sunn4room/nvim-cmp-codegeex

codegeex.nvim

Neovim plugin for CodegeeX v3

-- lazy.nvim spec
{
  "sunn4room/codegeex.nvim",
  -- url = "https://gitee.com/sunn4room/codegeex.nvim",
  keys = {
    {
      "<F1>",
      function()
        if require("codegeex").visible() then
          require("codegeex").confirm()
        else
          require("codegeex").complete()
        end
      end,
      mode = "i",
    },
    {
      "<F2>",
      function()
        require("codegeex").cancel()
      end,
      mode = "i",
    },
  },
  opts = {
    timeout = 5000, -- request timeout
    highlight = "NonText", -- highlight group for suggestions
    ft2lang = { -- filetype to lang for codegeex request
      python = "Python",
      -- ...
    },
  },
}