Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 971 Bytes

README.md

File metadata and controls

53 lines (38 loc) · 971 Bytes

cmp-minikind

Demo screenshot

About

Add icons to your nvim-cmp LSP completions!

Inspiration taken from lspkind.nvim

Dependencies

Use :checkhealth cmp-minikind to verify these are satisfied:

Installation

Make sure mini.icons is enabled in your config.

Using lazy.nvim

{
  "hrsh7th/nvim-cmp",
  dependencies = {
    "tranzystorekk/cmp-minikind.nvim",
  },

  config = function()
    require("cmp"). setup {
      formatting = {
        format = require("cmp-minikind").cmp_format(),
      }
    }
  end
}

Default config

{
  -- Ordered components to be output as the displayed LSP kind:
  --
  -- "text": kind name, e.g. "Method"
  -- "symbol": kind icon supplied by mini.icons, e.g. ""
  components = { "symbol", "text" },

  -- String to separate the components with
  separator = " ",
}