mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
feat(alpha): add quit button to dashboard (#3767)
* feat(alpha): adding option to turn off ESC keybind to exit chore: formatting * Update lua/lvim/core/alpha.lua Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com> * Update lua/lvim/core/autocmds.lua Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com> * Apply suggestions from code review * remove <esc> keybind Co-authored-by: Anchal Singh <anchal.singh@dpworld.com> Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com> Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
This commit is contained in:
parent
fab66b01f6
commit
0c94c6a5bd
2 changed files with 1 additions and 2 deletions
|
@ -135,6 +135,7 @@ function M.get_sections()
|
|||
lvim.icons.ui.Gear .. " Configuration",
|
||||
"<CMD>edit " .. require("lvim.config"):get_user_config_path() .. " <CR>",
|
||||
},
|
||||
{ "q", lvim.icons.ui.Close .. " Quit", "<CMD>quit<CR>" },
|
||||
},
|
||||
}
|
||||
return {
|
||||
|
|
|
@ -81,8 +81,6 @@ function M.load_defaults()
|
|||
pattern = "alpha",
|
||||
callback = function()
|
||||
vim.cmd [[
|
||||
nnoremap <silent> <buffer> q :qa<CR>
|
||||
nnoremap <silent> <buffer> <esc> :qa<CR>
|
||||
set nobuflisted
|
||||
]]
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue