Skip to content

How is this extention supposed to work? #2

@s1n7ax

Description

@s1n7ax

I installed the plugin and registered the telescope extension. Got bunch of errors but was fixed once the databases dir is created under
.local/share/nvim/databases/. telescope_history.sqlite3 is present under that. When I use for instance, require"telescope.builtin".find_files() I was expecting it to prioritize the most opened file over the default list. Isn't it what this extension supposed to do or have I configured it wrong?

SQLite version: sqlite 3.37.1-1

require('telescope').setup({
    defaults = {
        path_display = { 'truncate' },
        file_ignore_patterns = {
            'dist',
            'target',
            'node_modules',
            'pack/plugins',
        },

        mappings = {
            i = {
                ['<C-h>'] = 'which_key',
                ['<C-n>'] = 'move_selection_next',
                ['<C-e>'] = 'move_selection_previous',
            },
        },
        history = {
            path = fn.stdpath('data') .. '/databases/telescope_history.sqlite3',
            limit = 100,
        },
    },
})

require('telescope').load_extension('fzf')
require('telescope').load_extension('smart_history')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions