From 081b3ad77d70c9e63dace59bb47fd595aff81768 Mon Sep 17 00:00:00 2001 From: tian Date: Fri, 26 Apr 2024 18:19:42 +0800 Subject: [PATCH] feat: restart nvim --- lua/astronvim/mappings.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/astronvim/mappings.lua b/lua/astronvim/mappings.lua index d076b60..2131df2 100644 --- a/lua/astronvim/mappings.lua +++ b/lua/astronvim/mappings.lua @@ -20,6 +20,10 @@ if not vim.g.icons_enabled then vim.tbl_map(function(opts) opts.desc = opts.desc -- custom maps.n["1"] = { "^", desc = "go to start of line" } maps.n["2"] = { "$", desc = "go to end of line" } +-- restart server +maps.n["rl"] = { "LspRestart", desc = "restart lsp" } +maps.n["rn"] = { "source $MYVIMRC", desc = "restart neovim" } + -- 'greastet mapping erver' maps.v["p"] = { '"_dP', desc = "delete selection register and paste" } maps.n["P"] = { '"0p', desc = "paste copied register" }