Make plugin specs more uniform

This commit is contained in:
Marko Korhonen 2023-11-18 02:54:35 +02:00
parent 0ced314c90
commit 4004dc5df6
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
13 changed files with 55 additions and 40 deletions

View file

@ -3,14 +3,23 @@ return {
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-buffer", -- Buffer source
{ "petertriho/cmp-git", dependencies = { "nvim-lua/plenary.nvim" } }, -- Git source
-- Git source
{
"petertriho/cmp-git",
dependencies = { "nvim-lua/plenary.nvim" },
config = true,
},
"hrsh7th/cmp-nvim-lsp", -- LSP source
"hrsh7th/cmp-nvim-lua", -- Neovim Lua API documentation source
"hrsh7th/cmp-path", -- Path source
"hrsh7th/cmp-cmdline", -- cmdline source
"saadparwaiz1/cmp_luasnip", -- Snippets source
"f3fora/cmp-spell", -- Spell check source
"zbirenbaum/copilot-cmp", -- Copilot source
-- Copilot source
{
"zbirenbaum/copilot-cmp",
opts = { fix_pairs = true },
},
},
config = function()
local cmp = require("cmp")
@ -20,12 +29,6 @@ return {
return
end
-- Setup git completion source
require("cmp_git").setup()
--
-- Setup copilot source
require("copilot_cmp").setup({ fix_pairs = true })
-- Set completeopt to have a better completion experience
vim.o.completeopt = "menuone,noselect"