From 5409df6d4792b113599366b97a07480889f87726 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 21 Feb 2023 07:51:56 +0000 Subject: [PATCH] Update dashboard shortcuts, add cmd to start LSP --- config/nvim/lua/config/dashboard.lua | 11 +++++++++-- config/nvim/lua/plugins/lspconfig.lua | 7 +++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/config/dashboard.lua b/config/nvim/lua/config/dashboard.lua index 90d471df..728348ac 100644 --- a/config/nvim/lua/config/dashboard.lua +++ b/config/nvim/lua/config/dashboard.lua @@ -5,7 +5,7 @@ return { enable = true, }, shortcut = { - { desc = " Update", group = "@property", action = "Lazy update", key = "u" }, + { icon = " ", desc = "Lazy", group = "@property", action = "Lazy", key = "l" }, { icon = " ", icon_hl = "@variable", @@ -16,11 +16,18 @@ return { }, { icon = " ", - desc = "File tree", + desc = "Neotree", group = "Label", action = "Neotree", key = "n", }, + { + icon = " ", + desc = "Mason", + group = "@property", + action = "Mason", + key = "m", + }, }, }, } diff --git a/config/nvim/lua/plugins/lspconfig.lua b/config/nvim/lua/plugins/lspconfig.lua index 198aff3b..183a2dd0 100644 --- a/config/nvim/lua/plugins/lspconfig.lua +++ b/config/nvim/lua/plugins/lspconfig.lua @@ -2,6 +2,13 @@ return { { "neovim/nvim-lspconfig", event = { "BufReadPre", "BufNewFile" }, + cmd = { + "LspLog", + "LspInfo", + "LspStop", + "LspStart", + "LspRestart", + }, dependencies = { { "hrsh7th/nvim-cmp" }, { "rafamadriz/friendly-snippets" },