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
77
+
manually. The default kind names and highlight groups are as follows:
105
78
```lua
106
79
require("crates").setup {
107
80
...
@@ -125,11 +98,12 @@ require("crates").setup {
125
98
This will set a custom completion `cmp.kind_text` and `cmp.kind_hl_group` attributes
126
99
to completion items for `nvim-cmp`.
127
100
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.
101
+
<details>
102
+
<summary>Custom nvim-cmp kind icons</summary>
103
+
104
+
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
105
132
-
Here's an example of how add custom icons.
106
+
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
-
```
156
+
## Hover
157
+
Hover is supported through the [in-process language server](#in-process-language-server).
158
+
But you can also set up key mappings for specific menus. See [key mappings](#key-mappings).
226
159
227
160
# Config
228
-
229
161
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