mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 03:41:14 +01:00
Fix: Some keymap descriptions.
This commit is contained in:
7
init.lua
7
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.
|
||||
|
||||
@@ -146,7 +146,7 @@ vim.keymap.set('n', '<leader>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', '<leader>W', function()
|
||||
@@ -196,7 +196,7 @@ vim.keymap.set('n', '<leader>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', '<leader>qy', function()
|
||||
@@ -212,7 +212,7 @@ vim.keymap.set('n', '<leader>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', '<leader>qn', '<Cmd>q!<CR>')
|
||||
|
||||
Reference in New Issue
Block a user