feat: use Telescope for code actions

This commit is contained in:
Michael Mandl 2022-02-23 21:08:05 +01:00
parent 94a1b5c7bc
commit c5fc9d2e6a
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -84,7 +84,7 @@ local function custom_on_attach(client, buffer_nr)
bufnnoremap("gD", "<Cmd>lua vim.lsp.buf.declaration()<CR>")
bufnnoremap("gi", "<Cmd>lua vim.lsp.buf.implementation()<CR>")
bufnnoremap("gr", "<Cmd>lua vim.lsp.buf.references()<CR>")
bufnnoremap("ga", "<Cmd>lua vim.lsp.buf.code_action()<CR>")
bufnnoremap("ga", "<Cmd>Telescope lsp_code_actions theme=cursor<CR>")
-- Rename all references of symbol
bufnnoremap("<leader>R", "<Cmd>lua vim.lsp.buf.rename()<CR>")