Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.05 KB

README.md

File metadata and controls

59 lines (45 loc) · 1.05 KB

gleam-cmp.nvim

License: Apache 2.0

This is a source for nvim-cmp that autocompletes hexpm packages and its versions. It's active only within a gleam.toml file.

Requirements

Installation

For packer:

use {
  'steven-mathew/gleam-cmp',
  requires = {
    'nvim-lua/plenary.nvim'
  }
}

For lazy.nvim:

{
  "steven-mathew/gleam-cmp",
  dependencies = { "nvim-lua/plenary.nvim" },
  ft = "toml",
  config = function()
    require("gleam-cmp").setup {}
  end
}

Configuration

Please refer to the default settings below.

require("gleam-cmp.nvim").setup({
    only_latest_version = false,
    only_latest_stable_version = false,
})

Add the nvim-cmp source.

cmp.setup({
  ...,
  sources = {
    { name = "gleam", keyword_length = 3 },
    ...,
  },
})