Skip to content

Commit

Permalink
feat: restart nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtheworldbot committed Apr 26, 2024
1 parent 3ee92ea commit 081b3ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/astronvim/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ if not vim.g.icons_enabled then vim.tbl_map(function(opts) opts.desc = opts.desc
-- custom
maps.n["<leader>1"] = { "^", desc = "go to start of line" }
maps.n["<leader>2"] = { "$", desc = "go to end of line" }
-- restart server
maps.n["<leader>rl"] = { "<cmd>LspRestart<cr>", desc = "restart lsp" }
maps.n["<leader>rn"] = { "<cmd>source $MYVIMRC<cr>", desc = "restart neovim" }

-- 'greastet mapping erver'
maps.v["<leader>p"] = { '"_dP', desc = "delete selection register and paste" }
maps.n["<leader>P"] = { '"0p', desc = "paste copied register" }
Expand Down

0 comments on commit 081b3ad

Please sign in to comment.