✨ feat(nvim): added 4 new cmp extras: yanky, git, nerd-fonts and emoji
This commit is contained in:
parent
b9a6781f9d
commit
54030ab0d7
5 changed files with 48 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
"plugins.extras.coding.annotation",
|
||||
"plugins.extras.coding.cmp.autopairs",
|
||||
"plugins.extras.coding.cmp.fonts",
|
||||
"plugins.extras.coding.cmp.rg",
|
||||
"plugins.extras.coding.cmp.yanky",
|
||||
"plugins.extras.coding.debugprint",
|
||||
"plugins.extras.coding.dial",
|
||||
"plugins.extras.coding.multicursor",
|
||||
|
@ -25,6 +27,7 @@
|
|||
"plugins.extras.coding.treesitter.node-action",
|
||||
"plugins.extras.coding.treesitter.puppeteer",
|
||||
"plugins.extras.dap.persistent-breakpoints",
|
||||
"plugins.extras.editor.color",
|
||||
"plugins.extras.editor.docs.devdocs",
|
||||
"plugins.extras.editor.git.diffview",
|
||||
"plugins.extras.editor.git.github",
|
||||
|
|
9
.config/nvim/lua/plugins/extras/coding/cmp/emoji.lua
Normal file
9
.config/nvim/lua/plugins/extras/coding/cmp/emoji.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-emoji",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "emoji" })
|
||||
end,
|
||||
}
|
18
.config/nvim/lua/plugins/extras/coding/cmp/git.lua
Normal file
18
.config/nvim/lua/plugins/extras/coding/cmp/git.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
local cmp = require("cmp")
|
||||
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"petertriho/cmp-git",
|
||||
opts = {},
|
||||
},
|
||||
opts = function(_, opts)
|
||||
cmp.setup.filetype("gitcommit", {
|
||||
sources = cmp.config.sources({
|
||||
{ name = "git" }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
})
|
||||
end,
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"chrisgrieser/cmp-nerdfont",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "nerdfont" })
|
||||
end,
|
||||
}
|
9
.config/nvim/lua/plugins/extras/coding/cmp/yanky.lua
Normal file
9
.config/nvim/lua/plugins/extras/coding/cmp/yanky.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"chrisgrieser/cmp_yanky",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "cmp_yanky" })
|
||||
end,
|
||||
}
|
Loading…
Add table
Reference in a new issue