Skip to content

A source for nvim-cmp that autocompletes Gleam packages and its versions

Notifications You must be signed in to change notification settings

steven-mathew/gleam-cmp.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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 },
    ...,
  },
})

About

A source for nvim-cmp that autocompletes Gleam packages and its versions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages