Skip to content

Commit

Permalink
fix!: remove unused cmp-git source
Browse files Browse the repository at this point in the history
  • Loading branch information
petertriho committed Jan 9, 2023
1 parent 45be0d5 commit 6bcb61c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lua/cmp_git/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ local Source = require("cmp_git.source")
local M = {}

M.setup = function(overrides)
local cmp_git_source = Source.new(overrides)
local notified = false
cmp_git_source.complete = function(params, callback)
if not notified then
vim.api.nvim_echo({
{ "[cmp-git] ", "Normal" },
{ "source name ", "Normal" },
{ "'cmp_git' ", "WarningMsg" },
{ "is being deprecated. Change this to ", "Normal" },
{ "'git' ", "WarningMsg" },
{ "in your nvim-cmp setup.", "Normal" },
}, true, {})
notified = true
end
end

require("cmp").register_source("cmp_git", cmp_git_source)
require("cmp").register_source("git", Source.new(overrides))
end

Expand Down

0 comments on commit 6bcb61c

Please sign in to comment.