From 95161afa2ac3f45aa1c0f96872aca0c64b962327 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Tue, 26 Oct 2021 11:23:36 -0700 Subject: [PATCH] fix(lsp): fix code actions not working due to bad maps --- lua/cosmic/core/navigation/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/cosmic/core/navigation/init.lua b/lua/cosmic/core/navigation/init.lua index b241f84..671402b 100644 --- a/lua/cosmic/core/navigation/init.lua +++ b/lua/cosmic/core/navigation/init.lua @@ -12,7 +12,6 @@ local opts_cursor = { width = 0.5, height = 0.4, }, - mappings = mappings, } local opts_vertical = { @@ -59,11 +58,11 @@ require('telescope').setup({ pickers = { buffers = { prompt_title = '✨ Search Buffers ✨', - mappings = { + mappings = vim.tbl_deep_extend('force', { n = { ['d'] = actions.delete_buffer, }, - }, + }, mappings), sort_mru = true, preview_title = false, }, @@ -79,12 +78,15 @@ require('telescope').setup({ }), lsp_implementations = vim.tbl_deep_extend('force', opts_cursor, { prompt_title = 'Implementations', + mappings = mappings, }), lsp_definitions = vim.tbl_deep_extend('force', opts_cursor, { prompt_title = 'Definitions', + mappings = mappings, }), lsp_references = vim.tbl_deep_extend('force', opts_cursor, { prompt_title = 'References', + mappings = mappings, }), find_files = { prompt_title = '✨ Search Project ✨',