mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 15:31:12 +01:00
Fix: Some keymap descriptions.
This commit is contained in:
7
init.lua
7
init.lua
@@ -38,7 +38,9 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
require('lazy').setup({
|
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
|
-- Git related plugins
|
||||||
{
|
{
|
||||||
'tpope/vim-fugitive',
|
'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
|
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
'lewis6991/gitsigns.nvim',
|
'lewis6991/gitsigns.nvim',
|
||||||
@@ -256,6 +256,7 @@ require('lazy').setup({
|
|||||||
-- use opts = {} for passing setup options
|
-- use opts = {} for passing setup options
|
||||||
-- this is equalent to setup({}) function
|
-- this is equalent to setup({}) function
|
||||||
},
|
},
|
||||||
|
|
||||||
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
|
-- 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.
|
-- These are some example plugins that I've included in the kickstart repository.
|
||||||
-- Uncomment any of the lines below to enable them.
|
-- Uncomment any of the lines below to enable them.
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ vim.keymap.set('n', '<leader>w', function()
|
|||||||
else
|
else
|
||||||
vim.cmd 'w'
|
vim.cmd 'w'
|
||||||
end
|
end
|
||||||
end, { desc = 'Save buffer (prompt if new file)' })
|
end, { desc = 'Save buffer' })
|
||||||
|
|
||||||
-- [[ Save As a new file ]]
|
-- [[ Save As a new file ]]
|
||||||
vim.keymap.set('n', '<leader>W', function()
|
vim.keymap.set('n', '<leader>W', function()
|
||||||
@@ -196,7 +196,7 @@ vim.keymap.set('n', '<leader>q', function()
|
|||||||
else
|
else
|
||||||
vim.cmd 'q'
|
vim.cmd 'q'
|
||||||
end
|
end
|
||||||
end, { desc = 'Close buffer (prompt if modified)' })
|
end, { desc = 'Close buffer' })
|
||||||
|
|
||||||
-- [[ Save changes and close current window (asks for filename if new/unsaved) ]]
|
-- [[ Save changes and close current window (asks for filename if new/unsaved) ]]
|
||||||
vim.keymap.set('n', '<leader>qy', function()
|
vim.keymap.set('n', '<leader>qy', function()
|
||||||
@@ -212,7 +212,7 @@ vim.keymap.set('n', '<leader>qy', function()
|
|||||||
else
|
else
|
||||||
vim.cmd 'wq'
|
vim.cmd 'wq'
|
||||||
end
|
end
|
||||||
end, { desc = 'Save & quit (prompt if new file)' })
|
end, { desc = 'Save & quit' })
|
||||||
|
|
||||||
-- [[ Discard changes and Close current window ]]
|
-- [[ Discard changes and Close current window ]]
|
||||||
vim.keymap.set('n', '<leader>qn', '<Cmd>q!<CR>')
|
vim.keymap.set('n', '<leader>qn', '<Cmd>q!<CR>')
|
||||||
|
|||||||
Reference in New Issue
Block a user