You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom completion kinds are enabled by default, but icons need to be specified
79
+
manually. The default kind names and highlight groups are as follows:
105
80
```lua
106
81
require("crates").setup {
107
82
...
@@ -125,11 +100,12 @@ require("crates").setup {
125
100
This will set a custom completion `cmp.kind_text` and `cmp.kind_hl_group` attributes
126
101
to completion items for `nvim-cmp`.
127
102
128
-
Depending on how you've set up [the nvim-cmp menu](https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#basic-customisations)
129
-
you'll have to handle these explicitly.
130
-
If you haven't changed `nvim-cmp`s `formatting` configuration everything should work out of the box.
103
+
<details>
104
+
<summary>Custom nvim-cmp kind icons</summary>
105
+
106
+
How custom icons can be added depends on how you've set up [the nvim-cmp menu](https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#basic-customisations).
131
107
132
-
Here's an example of how add custom icons.
108
+
Here's an example of how add custom icons, you might need to adapt some things.
Enable it in the setup, and optionally change the display name.
217
-
```lua
218
-
require("crates").setup {
219
-
...
220
-
null_ls = {
221
-
enabled = true,
222
-
name = "crates.nvim",
223
-
},
224
-
}
225
-
```
158
+
## Hover
159
+
Hover is supported through the [in-process language server](#in-process-language-server).
160
+
But you can also set up key mappings for specific menus. See [key mappings](#key-mappings).
226
161
227
162
# Config
228
-
229
163
For more information about the config types have a look at the vimdoc or [`lua/crates/config/types.lua`](https://github.com/Saecki/crates.nvim/blob/main/lua/crates/config/types.lua).
0 commit comments