From 2ed2f43969112ae771cd0def77cc2ade220a7a5d Mon Sep 17 00:00:00 2001 From: psychhim Date: Sun, 12 Oct 2025 16:31:00 +0530 Subject: [PATCH] Fix: Some keymap descriptions. --- init.lua | 7 ++++--- lua/keymaps.lua | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 6960e76..88c6cd8 100644 --- a/init.lua +++ b/init.lua @@ -38,7 +38,9 @@ do end require('lazy').setup({ - -- NOTE: First, some plugins that don't require any configuration + -- Useful plugin to show you pending keybinds. + { 'folke/which-key.nvim', event = 'VeryLazy', opts = {} }, + -- Git related plugins { 'tpope/vim-fugitive', @@ -134,8 +136,6 @@ require('lazy').setup({ }, }, - -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', event = 'VeryLazy', opts = {} }, { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', @@ -256,6 +256,7 @@ require('lazy').setup({ -- use opts = {} for passing setup options -- this is equalent to setup({}) function }, + -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 14fec49..3603c46 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -146,7 +146,7 @@ vim.keymap.set('n', 'w', function() else vim.cmd 'w' end -end, { desc = 'Save buffer (prompt if new file)' }) +end, { desc = 'Save buffer' }) -- [[ Save As a new file ]] vim.keymap.set('n', 'W', function() @@ -196,7 +196,7 @@ vim.keymap.set('n', 'q', function() else vim.cmd 'q' end -end, { desc = 'Close buffer (prompt if modified)' }) +end, { desc = 'Close buffer' }) -- [[ Save changes and close current window (asks for filename if new/unsaved) ]] vim.keymap.set('n', 'qy', function() @@ -212,7 +212,7 @@ vim.keymap.set('n', 'qy', function() else vim.cmd 'wq' end -end, { desc = 'Save & quit (prompt if new file)' }) +end, { desc = 'Save & quit' }) -- [[ Discard changes and Close current window ]] vim.keymap.set('n', 'qn', 'q!')