From 71da8fa2742cbc8e6495b8ce6b0c086ca6a06723 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 25 Jan 2022 22:40:04 +0300 Subject: [PATCH] Add remaps for code actions --- config/nvim/lua/user/remaps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/nvim/lua/user/remaps.lua b/config/nvim/lua/user/remaps.lua index 5534e4d..3b6963d 100644 --- a/config/nvim/lua/user/remaps.lua +++ b/config/nvim/lua/user/remaps.lua @@ -49,6 +49,8 @@ nmap("gr", ":lua vim.lsp.buf.references()") -- g+r - Show references nmap("K", ":lua vim.lsp.buf.hover()") -- Shift+k - Show documentation in hover window nmap("", ":lua vim.lsp.buf.rename()") -- F2 - Rename thing under the cursor nmap("d", ':lua vim.diagnostic.open_float(nil, {focus = false, scope = "cursor"})') -- Leader+d - show diagnostics in float window +nmap(".", ":lua vim.lsp.buf.code_action()") -- Leader+. - show code actions to run +vmap(".", ":lua vim.lsp.buf.range_code_action()") -- same as above but for visual mode -- Git nmap("gg", ":G") -- Leader+g+g - open vim-fugitive window