diff --git a/NvChad-Confs/init.lua b/NvChad-Confs/init.lua index f05f59a..2f34c8d 100644 --- a/NvChad-Confs/init.lua +++ b/NvChad-Confs/init.lua @@ -27,3 +27,14 @@ hooks.add("install_plugins", function(use) end, } end) + +hooks.add("setup_mappings", function(map) + local lsp_opts = {} + map("n", "d", "lua vim.lsp.buf.hover()", lsp_opts) + map("n", "D", "lua vim.lsp.buf.signature_help()", lsp_opts) + map("n", "b", "lua vim.lsp.buf.definition()", lsp_opts) + map("n", "B", "lua vim.lsp.buf.implementation()", lsp_opts) + map("n", "r", "lua vim.lsp.buf.references()", lsp_opts) + map("n", "R", "lua vim.lsp.buf.rename()", lsp_opts) + map("n", "ca", "lua vim.lsp.buf.code_action()", lsp_opts) +end)