Added copilot cmp plugin
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
return {
|
||||
-- You can also add new plugins here as well:
|
||||
-- Add plugins, the lazy syntax
|
||||
-- "andweeb/presence.nvim",
|
||||
-- {
|
||||
-- "ray-x/lsp_signature.nvim",
|
||||
-- event = "BufRead",
|
||||
-- config = function()
|
||||
-- require("lsp_signature").setup()
|
||||
-- end,
|
||||
-- },
|
||||
-- Signatures plugin to show function signatures as you type them
|
||||
{
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("lsp_signature").setup {
|
||||
hint_enable = false,
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
-- Rooter plugin to change directory to the project root
|
||||
{
|
||||
"notjedi/nvim-rooter.lua",
|
||||
event = "UIEnter",
|
||||
@@ -20,11 +22,32 @@ return {
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
-- Leap plugin to jump to any line in the file
|
||||
{
|
||||
"ggandor/leap.nvim",
|
||||
event = "UIEnter",
|
||||
config = function() require("leap").add_default_mappings() end,
|
||||
},
|
||||
|
||||
-- Copilot plugin to autocomplete text
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("leap").add_default_mappings()
|
||||
require("copilot").setup {
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
filetypes = { markdown = true },
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
-- Copilot CMP plugin to autocomplete text in the completion menu
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
event = "InsertEnter",
|
||||
config = function() require("copilot_cmp").setup() end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user