aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-03-05 23:53:59 +0200
committersrdusr <trevorgray@srdusr.com>2023-03-05 23:53:59 +0200
commit34ab0dc6afd8f5082920e494f6503e0c743244ae (patch)
tree07c7fb8a198f817f25f7ecadf9cfca57703c88b5 /lua
parent1dfe25c30dda2910f1cd1d43f4c97e6224cbf433 (diff)
downloaddotfiles-34ab0dc6afd8f5082920e494f6503e0c743244ae.tar.gz
dotfiles-34ab0dc6afd8f5082920e494f6503e0c743244ae.zip
Mapping for messages and clear messages
Diffstat (limited to 'lua')
-rw-r--r--lua/user/keys.lua17
1 files changed, 11 insertions, 6 deletions
diff --git a/lua/user/keys.lua b/lua/user/keys.lua
index 02b466d..40c75d1 100644
--- a/lua/user/keys.lua
+++ b/lua/user/keys.lua
@@ -59,6 +59,17 @@ map("n", "<leader>d", ":bd<cr>")
-- List marks
map("n", "<Leader>m", ":marks<CR>")
+-- Messages
+map("n", "<Leader>M", ":messages<CR>")
+
+-- Clear messages
+
+-- Clear messages or just refresh/redraw the screen
+map("n", "<leader>u", ":echo '' | redraw<CR>")
+
+-- Unsets the 'last search pattern' register by hitting return
+--map("n", "<CR>", "!silent :noh<CR><CR>")
+
-- Toggle set number
map("n", "<leader>$", ":NumbersToggle<CR>")
map("n", "<leader>%", ":NumbersOnOff<CR>")
@@ -157,18 +168,12 @@ map("v", "p", '"_dP')
-- visual mode to select text to swap with
map("v", "<C-X>", "<Esc>`.``gvP``P")
--- Clear messages or just refresh/redraw the screen
-map("n", "<leader>u", ":echo '' | redraw<CR>")
-
-- Change Working Directory to current project
map("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>")
-- Open the current file in the default program (on Mac this should just be just `open`)
map('n', '<leader>o', ':!xdg-open %<cr><cr>')
--- Unsets the 'last search pattern' register by hitting return
---map("n", "<CR>", "!silent :noh<CR><CR>")
-
-- Toggle completion
map("n", "<Leader>tc", ":lua require('user.mods').toggle_completion()<CR>")