Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaconnier committed Oct 25, 2024
1 parent 899889d commit 1756afa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,31 @@ vim.g.blade_nav = {

See `:h VIMINIT`

## Customization with nvim-cmp

If you want to add an icon to blade-nav completion items in cmp, you can configure it through nvim-cmp's formatting options:

```
local kind_icons = {
BladeNav = "",
}
local cmp = require('cmp')
cmp.setup({
formatting = {
format = function(entry, item)
if kind_icons[item.kind] then
item.kind = string.format('%s %s', kind_icons[item.kind], item.kind)
end
return item
end
},
})
```

## Health

To check the health of the plugin, run `:checkhealth blade-nav`.
Expand Down

0 comments on commit 1756afa

Please sign in to comment.