Skip to content

Commit

Permalink
[neovim] Setup copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jan 15, 2025
1 parent 0fe7e5f commit 71610a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
pkgs.lua-language-server
pkgs.nixd
pkgs.nixfmt-rfc-style
pkgs.nodejs
pkgs.pyright
pkgs.ruby-lsp
pkgs.stylua
Expand Down
8 changes: 8 additions & 0 deletions home/neovim/plugins/lsp/config.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
require("copilot").setup({
panel = { enabled = false },
suggestion = { enabled = false },
})

require("copilot_cmp").setup()

local cmp = require("cmp")

-- https://github.com/hrsh7th/nvim-cmp
Expand Down Expand Up @@ -29,6 +36,7 @@ cmp.setup({
["<C-Space>"] = cmp.mapping.complete({}),
}),
sources = cmp.config.sources({
{ name = "copilot" },
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" },
}, {
Expand Down
1 change: 1 addition & 0 deletions home/neovim/plugins/lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
pkgs.vimPlugins.cmp-buffer
pkgs.vimPlugins.cmp-nvim-lsp
pkgs.vimPlugins.cmp-nvim-lsp-signature-help
pkgs.vimPlugins.copilot-cmp
pkgs.vimPlugins.nvim-cmp
]

0 comments on commit 71610a9

Please sign in to comment.