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