Could you consider setting up a custom kind for this source, so that it's possible to customize its icon? Copilot cmp does it and it lets me modify the Copilot icon like so:
{
-- Vscode-like pictograms for Neovim LSP completion items."onsails/lspkind.nvim",
config =function()
local lspkind =require("lspkind")
lspkind.init({
symbol_map = {
-- This is an Octocat with devicons.
Copilot ="๏",
},
})
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg ="#6CC644" })
end,
lazy =true,
}
ISOFormatter with methods from existing format_iso
LabelFormatter with methods from existing format_original
Replacing the format_iso and format_original methods on structures with a single format fun(formatter: natdat.Formatter): string. Each such method would call a corresponding formatter method.
Accepting a formatter for the insertText in the cmp_natdat source. By default, it would be the ISOFormatter