lots of polishing and command mode works again
This commit is contained in:
11
init.lua
11
init.lua
@@ -59,6 +59,8 @@ vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
|
||||
-- C-BS for deleting whole word in insert mode
|
||||
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })
|
||||
|
||||
-- Setup notifications
|
||||
|
||||
-- Keybinds for MiniSessions
|
||||
vim.keymap.set("n", "<leader>qj", function() -- quit and save session local
|
||||
MiniSessions.write(".session")
|
||||
@@ -66,8 +68,13 @@ vim.keymap.set("n", "<leader>qj", function() -- quit and save session local
|
||||
end, { noremap = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>qw", function() -- quit and save session global
|
||||
MiniSessions.write(vim.cmd("pwd"))
|
||||
vim.cmd("wqa")
|
||||
local sessionName = vim.fn.input("Session Name: ")
|
||||
if sessionName ~= "" then
|
||||
MiniSessions.write(sessionName)
|
||||
vim.cmd("wqa")
|
||||
else
|
||||
vim.notify("Session Name Invalid", vim.log.levels.INFO)
|
||||
end
|
||||
end, { noremap = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>qd", function() -- quit and delete session
|
||||
|
||||
Reference in New Issue
Block a user