Home

Awesome

Table of Contents

Usecase

Provides hooks for abbreviation events which fire on abbreviation expansion or when an abbreviation's value has been typed but the user did not take advantage of the abbreviation functionality.

Installation

use {
    '0styx0/abbremand.nvim',
    module = 'abbremand' -- if want to lazy load
}

Example

local abbremand = require('abbremand')
abbremand.on_abbr_forgotten(function(abbr_data)

    print(abbr_data.trigger)

    abbr_data.on_change(function(updated_text)
        print('user changed '..abbr_data.value..' to '..updated_text)
    end)
end)

API

Frontends