fix(lsp): fix code actions not working due to bad maps

This commit is contained in:
Matt Leong 2021-10-26 11:23:36 -07:00
parent 40b3d1e7af
commit 95161afa2a

View file

@ -12,7 +12,6 @@ local opts_cursor = {
width = 0.5, width = 0.5,
height = 0.4, height = 0.4,
}, },
mappings = mappings,
} }
local opts_vertical = { local opts_vertical = {
@ -59,11 +58,11 @@ require('telescope').setup({
pickers = { pickers = {
buffers = { buffers = {
prompt_title = '✨ Search Buffers ✨', prompt_title = '✨ Search Buffers ✨',
mappings = { mappings = vim.tbl_deep_extend('force', {
n = { n = {
['d'] = actions.delete_buffer, ['d'] = actions.delete_buffer,
}, },
}, }, mappings),
sort_mru = true, sort_mru = true,
preview_title = false, preview_title = false,
}, },
@ -79,12 +78,15 @@ require('telescope').setup({
}), }),
lsp_implementations = vim.tbl_deep_extend('force', opts_cursor, { lsp_implementations = vim.tbl_deep_extend('force', opts_cursor, {
prompt_title = 'Implementations', prompt_title = 'Implementations',
mappings = mappings,
}), }),
lsp_definitions = vim.tbl_deep_extend('force', opts_cursor, { lsp_definitions = vim.tbl_deep_extend('force', opts_cursor, {
prompt_title = 'Definitions', prompt_title = 'Definitions',
mappings = mappings,
}), }),
lsp_references = vim.tbl_deep_extend('force', opts_cursor, { lsp_references = vim.tbl_deep_extend('force', opts_cursor, {
prompt_title = 'References', prompt_title = 'References',
mappings = mappings,
}), }),
find_files = { find_files = {
prompt_title = '✨ Search Project ✨', prompt_title = '✨ Search Project ✨',