Skip to content

Commit

Permalink
cmp_git 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Oct 14, 2023
1 parent c4fc6ab commit de370b0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/custom/configs/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ return {
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "path" }
{ name = "path" },
{ name = "git" },
}
}
12 changes: 12 additions & 0 deletions lua/custom/configs/cmp_git.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
return {
remotes = {
"origin",
-- "upstream"
},
filetypes = {
'gitcommit',
'octo',
'NeogitCommitMessage',
'vimwiki',
}
}
6 changes: 6 additions & 0 deletions lua/custom/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ return {
},
{
"hrsh7th/nvim-cmp",
dependencies = {
"petertriho/cmp-git"
},
opts = function()
local chad = require("plugins.configs.cmp")
local custom = require("custom.configs.cmp")
local merged = vim.tbl_deep_extend("force", chad, custom)

return merged
end,
init = function()
require("cmp_git").setup(require("custom.configs.cmp_git"))
end
},
{
"lewis6991/gitsigns.nvim",
Expand Down

0 comments on commit de370b0

Please sign in to comment.