✨ feat(nvim): image extra, as well as moving the lsp and cmp to extras
This commit is contained in:
parent
27bfa43c32
commit
75d9941d3e
4 changed files with 11 additions and 13 deletions
|
@ -26,6 +26,7 @@
|
||||||
"plugins.extras.alpha",
|
"plugins.extras.alpha",
|
||||||
"plugins.extras.annotation",
|
"plugins.extras.annotation",
|
||||||
"plugins.extras.breadcrumbs",
|
"plugins.extras.breadcrumbs",
|
||||||
|
"plugins.extras.cmp",
|
||||||
"plugins.extras.codeium",
|
"plugins.extras.codeium",
|
||||||
"plugins.extras.color",
|
"plugins.extras.color",
|
||||||
"plugins.extras.compiler",
|
"plugins.extras.compiler",
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
"plugins.extras.git",
|
"plugins.extras.git",
|
||||||
"plugins.extras.github",
|
"plugins.extras.github",
|
||||||
"plugins.extras.harpoon",
|
"plugins.extras.harpoon",
|
||||||
|
"plugins.extras.lsp",
|
||||||
"plugins.extras.multicursor",
|
"plugins.extras.multicursor",
|
||||||
"plugins.extras.rainbow-delimeters",
|
"plugins.extras.rainbow-delimeters",
|
||||||
"plugins.extras.refactor",
|
"plugins.extras.refactor",
|
||||||
|
|
|
@ -61,19 +61,6 @@ return {
|
||||||
opts.mapping = cmp.mapping.preset.insert({
|
opts.mapping = cmp.mapping.preset.insert({
|
||||||
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
|
["<C-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
|
||||||
["<C-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
|
["<C-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
|
||||||
["<C-p>"] = cmp.mapping.scroll_docs(-4),
|
|
||||||
["<C-n>"] = cmp.mapping.scroll_docs(4),
|
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
|
||||||
["<C-e>"] = cmp.mapping.abort(),
|
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
|
||||||
["<S-CR>"] = cmp.mapping.confirm({
|
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
|
||||||
select = true,
|
|
||||||
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
|
||||||
["<C-CR>"] = function(fallback)
|
|
||||||
cmp.abort()
|
|
||||||
fallback()
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
opts.window = {
|
opts.window = {
|
||||||
completion = cmp.config.window.bordered(),
|
completion = cmp.config.window.bordered(),
|
9
.config/nvim/lua/plugins/extras/image.lua
Normal file
9
.config/nvim/lua/plugins/extras/image.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"edluffy/hologram.nvim",
|
||||||
|
lazy = true,
|
||||||
|
opts = {
|
||||||
|
auto_display = true, -- WIP automatic markdown image display, may be prone to breaking
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue