Skip to content

Instantly share code, notes, and snippets.

@kawarimidoll
Last active July 10, 2022 05:44
Show Gist options
  • Save kawarimidoll/31edc1b58e44fdd350fa378bbb7c9722 to your computer and use it in GitHub Desktop.
Save kawarimidoll/31edc1b58e44fdd350fa378bbb7c9722 to your computer and use it in GitHub Desktop.
Show sources of ins-completion by which-key.nvim
local wk = require("which-key")
wk.setup()
-- :h ins-completion
wk.register({
["<C-l>"] = 'Whole lines',
["<C-n>"] = 'keywords in the current file',
["<C-k>"] = 'keywords in dictionary',
["<C-t>"] = 'keywords in thesaurus',
["<C-i>"] = 'keywords in the current and included files',
["<C-]>"] = 'tags',
["<C-f>"] = 'file names',
["<C-d>"] = 'definitions or macros',
["<C-v>"] = 'Vim command-line',
["<C-u>"] = 'User defined completion',
["<C-o>"] = 'omni completion',
["<C-s>"] = 'Spelling suggestions',
["<C-z>"] = 'stop completion',
}, {
mode = "i",
prefix = "<C-x>",
})
@kawarimidoll
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment