diff --git a/init.lua b/init.lua index c14f693..d42d29f 100644 --- a/init.lua +++ b/init.lua @@ -79,6 +79,34 @@ utils.map('n', 'r', 'Telescope lsp_references') utils.map('n', '', 'Telescope lsp_document_symbols') utils.map('n', '', 'Telescope lsp_document_symbols') utils.map('n', 'v', 'Telescope lsp_document_diagnostics') +local actions = require('telescope.actions') +require('telescope').setup{ + defaults = { + mappings = { + i = { + [""] = actions.select_tab, + [""] = actions.select_default, + } + }, + }, + pickers = { + -- Your special builtin config goes in here + buffers = { + sort_lastused = true, + previewer = false, + theme = "dropdown", + mappings = { + i = { + [""] = actions.delete_buffer, + [""] = actions.select_default, + }, + n = { + [""] = actions.delete_buffer, + } + } + } + } +} -------------------- LSP ----------------------------------- require('mylsp')