Files
nvim-cmp/lua/cmp
Jonatan Branting 913eb85998 feat: add filter option to sources (#1067)
* feat: add `source.filter` config

This allows the user to specify a `filter` function for each source,
like this:

```lua
-- don't show entries with kind "Text" from the "nvim_lsp" source

sources = {
{
  name = "nvim_lsp",
  filter = function(entry, ctx)
    local kind = types.lsp.CompletionItemKind[entry:get_kind()]

    if kind == "Text" then
      return true
    end
  },
}
```

By utilizing the `ctx` parameter, the user can also ignore certain
entries in certain contexts.

* fixup! feat: add `source.filter` config

* fixup! feat: add `source.filter` config
2022-09-08 12:48:27 +09:00
..
2022-08-15 01:25:50 +09:00
2022-08-20 21:58:53 +09:00
2022-08-20 20:27:48 +09:00
2021-08-04 01:07:12 +09:00
2022-07-24 12:44:53 +09:00
2021-11-15 13:15:56 +09:00
2022-08-21 02:11:49 +09:00
2022-08-23 14:52:04 +09:00
2022-05-04 01:47:01 +09:00
2022-07-24 12:44:53 +09:00
2021-08-27 23:26:54 +09:00
2022-08-23 15:21:32 +09:00
2022-07-24 12:44:53 +09:00