feat(nvim): add copilot
This commit is contained in:
parent
c4ebb29d5a
commit
a08734916c
2 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,10 @@
|
|||
lsp_lines-nvim
|
||||
lsp-inlayhints-nvim
|
||||
|
||||
# Copilot
|
||||
copilot-lua
|
||||
copilot-cmp
|
||||
|
||||
# debugging
|
||||
nvim-dap
|
||||
nvim-dap-ui
|
||||
|
|
|
@ -7,6 +7,11 @@ end
|
|||
|
||||
local cmp = require("cmp")
|
||||
local luasnip = require("luasnip")
|
||||
local copilot_lua = require("copilot")
|
||||
local copilot_cmp = require("copilot_cmp")
|
||||
|
||||
copilot_lua.setup({})
|
||||
copilot_cmp.setup({})
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
|
@ -15,6 +20,7 @@ cmp.setup({
|
|||
end
|
||||
},
|
||||
sources = cmp.config.sources({
|
||||
{ name = "copilot" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "nvim_lsp_signature_help" },
|
||||
{ name = "luasnip" },
|
||||
|
|
Loading…
Reference in a new issue