dotfiles/.config/nvim/lua/plugins/coding.lua

57 lines
1.6 KiB
Lua
Raw Normal View History

2023-09-21 10:51:59 +02:00
return {
2023-09-28 11:13:02 +02:00
{
"echasnovski/mini.pairs",
enabled = false,
},
2024-01-02 23:33:20 +01:00
{
"nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
opts = function(_, opts)
2024-05-09 11:16:52 +02:00
local cmp = require("cmp")
2024-01-02 23:33:20 +01:00
table.insert(opts.sources, { name = "emoji" })
2024-05-09 11:16:52 +02:00
opts.view = { docs = { auto_open = false }, entries = { follow_cursor = true } }
opts.completion = {
autocomplete = false,
}
local winhighlight =
"Normal:NoiceCmdlinePopupTitle,FloatBorder:NoiceCmdlinePopupBorder,CursorLine:PMenuSel,Search:Search"
opts.window = {
completion = cmp.config.window.bordered({ winhighlight = winhighlight, border = "rounded" }),
documentation = cmp.config.window.bordered({ winhighlight = winhighlight, border = "rounded" }),
preview = cmp.config.window.bordered({ winhighlight = winhighlight, border = "rounded" }),
}
-- lua sorting = { comparators = { cmp.config.compare.sort_text, -- this needs to be 1st cmp.config.compare.offset, cmp.config.compare.exact, cmp.config.compare.score, cmp.config.compare.kind, cmp.config.compare.length, cmp.config.compare.order, } }
opts.sorting = {
priority_weight = 2,
comparators = {
cmp.config.compare.exact,
cmp.config.compare.recently_used,
cmp.config.compare.locality,
cmp.config.compare.offset,
-- cmp.config.compare.scopes,
cmp.config.compare.score,
cmp.config.compare.kind,
-- cmp.config.compare.sort_text,
cmp.config.compare.length,
cmp.config.compare.order,
},
}
return opts
2024-01-02 23:33:20 +01:00
end,
},
2024-05-09 11:16:52 +02:00
{
"Exafunction/codeium.nvim",
opts = {
enable_chat = false,
},
},
2023-09-21 10:51:59 +02:00
}