From: Huck Boles Date: Fri, 30 Jun 2023 16:15:39 +0000 (-0500) Subject: edited: style edits X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=2ff2a06450fcf561c9fa9dd3687cb33e3352bf94;p=nvim.git edited: style edits --- diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 0cd48e4..c3d6607 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -13,30 +13,31 @@ return { keys = { { '', 'Telescope current_buffer_fuzzy_find sorting_strategy=ascending' }, { '', 'Telescope command_history' }, - { 'b', 'Telescope buffers' }, - { 'l', 'Telescope diagnostics' }, - { 'R', 'Telescope lsp_references' }, - { 'tt', 'Telescope resume' }, - { 'tc', 'Telescope commands' }, - { 'th', 'Telescope help_tags' }, - { 'tm', 'Telescope marks' }, - { 'tq', 'Telescope quickfix' }, - { 'ts', 'Telescope search_history' }, - { 'tr', 'Telescope registers' }, - { 'tk', 'Telescope keymaps' }, - { 'to', 'Telescope vim_options' }, - { 'tgc', 'Telescope git_commits' }, - { 'tgd', 'Telescope git_bcommits' }, - { 'tgb', 'Telescope git_branches' }, - { 'tgs', 'Telescope git_status' }, - { 'tft', 'Telescope filetypes' }, - { 'tld', 'Telescope lsp_type_definitions' }, - { 'tlt', 'Telescope lsp_definitions' }, - { 'tli', 'Telescope lsp_implementations' }, - { 'tls', 'Telescope lsp_document_symbols' }, - { 'tlS', 'Telescope lsp_workspace_symbols' }, + { 'b', 'Telescope buffers' }, + { 'l', 'Telescope diagnostics' }, + { 'R', 'Telescope lsp_references' }, + { 'tt', 'Telescope resume' }, + { 'tc', 'Telescope commands' }, + { 'th', 'Telescope help_tags' }, + { 'tm', 'Telescope marks' }, + { 'tq', 'Telescope quickfix' }, + { 'ts', 'Telescope search_history' }, + { 'tr', 'Telescope registers' }, + { 'tk', 'Telescope keymaps' }, + { 'to', 'Telescope vim_options' }, + { 'tgc', 'Telescope git_commits' }, + { 'tgd', 'Telescope git_bcommits' }, + { 'tgb', 'Telescope git_branches' }, + { 'tgs', 'Telescope git_status' }, + { 'tft', 'Telescope filetypes' }, + { 'tld', 'Telescope lsp_type_definitions' }, + { 'tlt', 'Telescope lsp_definitions' }, + { 'tli', 'Telescope lsp_implementations' }, + { 'tls', 'Telescope lsp_document_symbols' }, + { 'tlS', 'Telescope lsp_workspace_symbols' }, }, config = function() + local actions = require('telescope.actions') require('telescope').setup { defaults = { layout_strategy = 'horizontal', @@ -45,7 +46,12 @@ return { width = 0.9, }, mappings = { - i = { [""] = require('telescope.actions').close }, + i = { + [''] = actions.close, + [''] = actions.delete_buffer + actions.move_to_top, + [''] = actions.move_selection_next, + [''] = actions.move_selection_previous, + }, }, }, pickers = {}, diff --git a/lua/plugins/tpope.lua b/lua/plugins/tpope.lua index 63ccb8a..ac11a28 100644 --- a/lua/plugins/tpope.lua +++ b/lua/plugins/tpope.lua @@ -6,12 +6,12 @@ return { { 'tpope/vim-fugitive', keys = { - { 'gg', 'Git' }, - { 'gc', 'Git commit' }, - { 'ga', 'Git add %' }, - { 'gd', 'Gdiffsplit' }, - { 'gb', 'Git blame' }, - { 'gp', 'Git push' }, + { 'gg', 'Git' }, + { 'gc', 'Git commit' }, + { 'ga', 'Git add %' }, + { 'gd', 'Gdiffsplit' }, + { 'gb', 'Git blame' }, + { 'gp', 'Git push' }, }, }, }