Add nvim copilot
This commit is contained in:
@ -36,13 +36,16 @@ cmp.setup({
|
||||
{ name = 'path' },
|
||||
{ name = 'cmp_yanky' },
|
||||
{ name = 'git' },
|
||||
{ name = 'copilot' },
|
||||
-- }, {
|
||||
{ name = 'buffer', keyword_length = 2 },
|
||||
}),
|
||||
|
||||
formatting = {
|
||||
formatting = {
|
||||
format = lspkind.cmp_format({
|
||||
mode = "symbol_text",
|
||||
-- mode = "symbol_text",
|
||||
mode = "symbol",
|
||||
menu = ({
|
||||
buffer = "[buf]",
|
||||
nvim_lsp = "[lsp]",
|
||||
@ -51,7 +54,9 @@ cmp.setup({
|
||||
latex_symbols = "[tex]",
|
||||
path = "[path]",
|
||||
cmp_yanky = "[yank]",
|
||||
})
|
||||
copilot = "[copilot]",
|
||||
}),
|
||||
symbol_map = { Copilot = "" }
|
||||
}),
|
||||
},
|
||||
})
|
||||
@ -117,6 +122,7 @@ require("telescope").load_extension("yank_history")
|
||||
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- ensure_installed = { "lua", "vim", "help" },
|
||||
ensure_installed = {},
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
|
||||
@ -176,3 +182,10 @@ require('lualine').setup({
|
||||
inactive_winbar = {},
|
||||
extensions = {}
|
||||
})
|
||||
|
||||
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
require("copilot_cmp").setup()
|
||||
|
||||
Reference in New Issue
Block a user