From 2697bcfaf0fac861e08c3a55d9334ec6d823029f Mon Sep 17 00:00:00 2001 From: Gwarnifarn Date: Thu, 3 Jun 2021 22:16:09 +0200 Subject: [PATCH] docs: add more builtin.buffers documentation (#888) --- doc/telescope.txt | 5 +++++ lua/telescope/builtin/init.lua | 2 ++ 2 files changed, 7 insertions(+) diff --git a/doc/telescope.txt b/doc/telescope.txt index 18c632d..f20a686 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -722,6 +722,11 @@ builtin.buffers({opts}) *builtin.buffers()* {only_cwd} (boolean) if true, only show buffers in the current working directory (default false) + {sort_lastused} (boolean) if true, sort the shown buffers so + that the last used one is selected + (default false) + {bufnr_width} (number) Defines the width of the buffer + numbers in front of the filenames builtin.colorscheme({opts}) *builtin.colorscheme()* diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index 12e5b7d..8d67609 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -212,6 +212,8 @@ builtin.reloader = require('telescope.builtin.internal').reloader ---@field show_all_buffers boolean: if true, show all buffers, including unloaded buffers (default true) ---@field ignore_current_buffer boolean: if true, don't show the current buffer in the list (default false) ---@field only_cwd boolean: if true, only show buffers in the current working directory (default false) +---@field sort_lastused boolean: if true, sort the shown buffers so that the last used one is selected (default false) +---@field bufnr_width number: Defines the width of the buffer numbers in front of the filenames builtin.buffers = require('telescope.builtin.internal').buffers --- Lists available colorschemes and applies them on ``