Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.11 KB

README.md

File metadata and controls

57 lines (48 loc) · 1.11 KB

cmp-notmuch

notmuch address source for the following completion engines:

Setup

nvim-cmp

require('cmp').setup {
  sources = {
    { name = 'notmuch' }
  }
}

blink.cmp

-- ...

sources = {
    completion = {
        enabled_providers = { "lsp", "path", "snippets", "buffer", "notmuch" },
    },
    providers = {
        lsp = {
            name = "LSP",
            module = "blink.cmp.sources.lsp",
        },
        path = {
            name = "Path",
            module = "blink.cmp.sources.path",
            score_offset = 3,
        },
        snippets = {
            name = "Snippets",
            module = "blink.cmp.sources.snippets",
            score_offset = -3,
        },
        buffer = {
            name = "Buffer",
            module = "blink.cmp.sources.buffer",
            fallback_for = { "lsp" },
        },
        notmuch = {
            name = "Notmuch",
            module = "blink.cmp.sources.notmuch",
        },
    },
},

-- ...