From e1d32ca42ee6fdef8c724e3f391e548895f0bdcf Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Tue, 3 May 2022 19:01:53 +0430 Subject: feat(quit): make sure to ask before discarding changes (#2554) --- lua/lvim/core/which-key.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lvim/core/which-key.lua') diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index 3c3cc66b..be4487f3 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -82,7 +82,7 @@ M.config = function() mappings = { [";"] = { "Alpha", "Dashboard" }, ["w"] = { "w!", "Save" }, - ["q"] = { "q!", "Quit" }, + ["q"] = { "lua require('lvim.utils.functions').smart_quit()", "Quit" }, ["/"] = { "lua require('Comment.api').toggle_current_linewise()", "Comment" }, ["c"] = { "BufferKill", "Close Buffer" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, -- cgit v1.2.3