feat: rename with leader-r
This commit is contained in:
parent
cc4da2fb2d
commit
492be2d390
@ -108,7 +108,7 @@ local function custom_on_attach(client, buffer_nr)
|
|||||||
bufnnoremap("ga", "<Cmd>Telescope lsp_code_actions theme=cursor<CR>")
|
bufnnoremap("ga", "<Cmd>Telescope lsp_code_actions theme=cursor<CR>")
|
||||||
|
|
||||||
-- Rename all references of symbol
|
-- Rename all references of symbol
|
||||||
bufnnoremap("<leader>R", "<Cmd>lua vim.lsp.buf.rename()<CR>")
|
bufnnoremap("<leader>r", "<Cmd>lua vim.lsp.buf.rename()<CR>")
|
||||||
|
|
||||||
-- Format buffer
|
-- Format buffer
|
||||||
bufnnoremap("<leader>F", "<Cmd>lua vim.lsp.buf.formatting_sync()<CR>")
|
bufnnoremap("<leader>F", "<Cmd>lua vim.lsp.buf.formatting_sync()<CR>")
|
||||||
|
Reference in New Issue
Block a user