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:
Anchal Singh 2023-01-26 20:50:07 +05:30 committed by GitHub
parent fab66b01f6
commit 0c94c6a5bd
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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 {

View file

@ -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,