<commit_before>local cmp = require('cmp')

cmp.setup {
    mapping = {
        ['<s-tab>'] = cmp.mapping.select_prev_item(),
        ['<tab>'] = cmp.mapping.select_next_item(),
        ['<cr>'] = cmp.mapping.confirm({
            behavior = cmp.ConfirmBehavior.Insert,
            select = true
        })
    },
    snippet = {
        expand = function(args) require('luasnip').lsp_expand(args.body) end<commit_msg>Show completion kinds<commit_after>local cmp = require('cmp')

cmp.setup {
    formatting = {
        format = function(entry, item)
            item.menu = entry.source.name
            return item
        end
    },
    mapping = {
        ['<s-tab>'] = cmp.mapping.select_prev_item(),
        ['<tab>'] = cmp.mapping.select_next_item(),
        ['<cr>'] = cmp.mapping.confirm({
            behavior = cmp.ConfirmBehavior.Insert,
            select = true
        })
    },
    snippet = {
        expand = function(args) require('luasnip').lsp_expand(args.body) end
{'fraction_non_alphanumeric': 0.15431472081218275, 'fraction_numerical': 0.0, 'mean_word_length': 2.16025641025641, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6323757', 'n_tokens_mistral': 312, 'n_tokens_neox': 309, 'n_words': 50}