Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMP item count #741

Open
sebszyller opened this issue Oct 6, 2024 · 0 comments
Open

CMP item count #741

sebszyller opened this issue Oct 6, 2024 · 0 comments

Comments

@sebszyller
Copy link

🚀 The feature, motivation and pitch

nvim-cmp let's you customise max_item_count. obsidian.nvim injects itself as a source by itself, and it isn't possible to customise the source.

Alternatives

No response

Additional context

obsidian.nvim expects you to customise completions via:

  completion = {
    -- Set to false to disable completion.
    nvim_cmp = true,
    -- Trigger completion at 2 chars.
    min_chars = 2,
  },

It would be handy if there were other options (max_item_count). In particular, because there seems to be some inconsistency w.r.t. what can and cannot be customised on the nvim-cmp level, e.g. you can customise the formatting of the completion:

formatting = {
    format = lspkind.cmp_format({
	    with_text = true,
	    menu = {
		    obsidian = "[WIKI]",
		    buffer = "[BUF]",
		    nvim_lsp = "[LSP]",
		    nvim_lua = "[API]",
		    path = "[PATH]",
		    luasnip = "[SNIP]",
	    },
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant