summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/keymaps.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-12-03 09:48:00 -0500
committertriethyl <triethylammonium@pm.me>2025-12-03 09:48:00 -0500
commitda2ae5f98aadc5f5bd3498854db9efd75fa1b6ab (patch)
tree061a0d13998f91210db13f1e99dd012ce4b05ca2 /pkgs/custom-neovim/config/lua/keymaps.lua
parentdf154e4918a635e1c7052d332d25324773e13847 (diff)
neovim: many changes
Diffstat (limited to 'pkgs/custom-neovim/config/lua/keymaps.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/keymaps.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua
index 9c1d260..535962d 100644
--- a/pkgs/custom-neovim/config/lua/keymaps.lua
+++ b/pkgs/custom-neovim/config/lua/keymaps.lua
@@ -68,11 +68,11 @@ mapkey("n", "<leader>ws", "Save current session", ":AutoSession save<cr>")
mapkey("n", "<leader>wr", "Open last session", ":AutoSession restore<cr>")
mapkey("n", "<leader>wp", "Purge orphaned sessions", ":AutoSession purgeOrphaned<cr>")
mapkey("n", "<leader>wl", "Leave current session", function()
- vim.cmd.wa()
+ vim.cmd("wa")
vim.cmd("AutoSession save")
- vim.cmd.new()
+ vim.cmd("new")
vim.cmd([[.+,$bwipeout]])
- vim.cmd.cd("~")
+ vim.cmd("cd ~")
end)
-- Terminal
@@ -104,8 +104,8 @@ mapkey({ "n", "v" }, "<up>", "Go up visually", "g<up>")
-- QOL Keys
mapkey("t", "<Esc><Esc>", "Exit terminal insert mode", "<C-\\><C-n>")
-vim.keymap.set("c", "<cr>", function()
- if vim.fn.pumvisible() == 1 then return '<c-y>' end
- return '<cr>'
-end, { expr = true }) -- Make enter complete command.
+-- vim.keymap.set("c", "<cr>", function()
+-- if vim.fn.pumvisible() == 1 then return '<c-y>' end
+-- return '<cr>'
+-- end, { expr = true }) -- Make enter complete command.
mapkey("n", "<esc>", "Clear highlights", ":noh<cr>") -- Make esc clear highlights