diff --git a/dots/.config/nvim/lua/plugins/configs/_cmp.lua b/dots/.config/nvim/lua/plugins/configs/_cmp.lua index 636988d3..323397e9 100755 --- a/dots/.config/nvim/lua/plugins/configs/_cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/_cmp.lua @@ -21,8 +21,9 @@ cmp.setup({ cmdline_history = { symbol = " ", name = "Cmd History", hl_group = "CmdHistory" }, rg = { symbol = " ", name = "Ripgrep", hl_group = "Ripgrep" }, npm = { symbol = " ", name = "Npm,", hl_group = "Npm," }, - conventionalcommits = { symbol = "󰊢 ", name = "Commit", hl_group = "Commit" }, + conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" }, spell = { symbol = "󰏪 ", name = "Spell", hl_group = "Spell" }, + git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" }, } local extra_kind_icons = { @@ -140,6 +141,7 @@ cmp.setup({ }, { name = "async_path", priority = 6 }, { name = "zsh", priority = 5 }, + { name = "git", priority = 4 }, { name = "emoji", keyword_length = 2 }, { name = "neorg" }, { name = "calc" }, @@ -164,7 +166,8 @@ cmp.setup({ -- Git Commit Completions cmp.setup.filetype("gitcommit", { sources = cmp.config.sources({ - { name = "conventionalcommits", priority = 2 }, + { name = "conventionalcommits", priority = 3 }, + { name = " git", priority = 2 }, { name = "emoji", keyword_length = 2, priority = 1 }, }), }) diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index 3e206e37..a7eaef0c 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -86,6 +86,7 @@ require("kanagawa").setup({ CmpItemKindInterface = { fg = colors.fujiWhite, bg = colors.waveRed }, CmpItemKindColor = { fg = colors.fujiWhite, bg = colors.waveAqua2 }, CmpItemKindTypeParameter = { fg = colors.fujiWhite, bg = colors.waveAqua2 }, + CmpCustomSelectionGit = { fg = colors.fujiWhite, bg = colors.roninYellow }, CmpCustomSelectionBuffer = { fg = colors.fujiWhite, bg = colors.dragonBlue }, CmpCustomSelectionPath = { fg = colors.fujiWhite, bg = colors.autumnYellow }, CmpCustomSelectionCalculator = { fg = colors.fujiWhite, bg = colors.waveBlue2 }, diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index 4d4346f3..e75f3708 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -284,6 +284,11 @@ lazy.setup({ "onsails/lspkind.nvim", "f3fora/cmp-spell", "FelipeLema/cmp-async-path", + { + "petertriho/cmp-git", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { filetypes = { "*" } }, + }, -- Snippets { "L3MON4D3/LuaSnip",