Keybind mappings & Dashboard Configuration
This commit is contained in:
parent
903fba6d12
commit
3c8082040e
@ -27,3 +27,14 @@ hooks.add("install_plugins", function(use)
|
||||
end,
|
||||
}
|
||||
end)
|
||||
|
||||
hooks.add("setup_mappings", function(map)
|
||||
local lsp_opts = {}
|
||||
map("n", "<leader>d", "<cmd>lua vim.lsp.buf.hover()<CR>", lsp_opts)
|
||||
map("n", "<leader>D", "<cmd>lua vim.lsp.buf.signature_help()<CR>", lsp_opts)
|
||||
map("n", "<leader>b", "<cmd>lua vim.lsp.buf.definition()<CR>", lsp_opts)
|
||||
map("n", "<leader>B", "<cmd>lua vim.lsp.buf.implementation()<CR>", lsp_opts)
|
||||
map("n", "<leader>r", "<cmd>lua vim.lsp.buf.references()<CR>", lsp_opts)
|
||||
map("n", "<leader>R", "<cmd>lua vim.lsp.buf.rename()<CR>", lsp_opts)
|
||||
map("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", lsp_opts)
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user