Skip to content

Commit 86bc844

Browse files
author
Ali Shahid
committed
[nvim-lspconfig] change mapping
1 parent 8676f28 commit 86bc844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/plugins/nvim-lspconfig.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ local on_attach = function(client, bufnr)
5353
buf_set_keymap('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', options)
5454
-- using 'filipdutescu/renamer.nvim' for rename
5555
-- buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
56-
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', options)
57-
buf_set_keymap("n", "gf", '<cmd>lua vim.lsp.buf.format{ async=true }<CR>', options)
56+
buf_set_keymap('n', 'gr', '<cmd>Telescope lsp_references<CR>', options)
57+
buf_set_keymap("n", "gf", '<cmd>lua vim.lsp.buf.format{ async=true }<CR>', options)
5858

5959
buf_set_keymap('n', 'ga', '<cmd>lua vim.lsp.buf.code_action()<CR>', options)
6060
buf_set_keymap('x', 'ga', '<cmd>lua vim.lsp.buf.range_code_action()<CR>', options)

0 commit comments

Comments
 (0)